line 1 will call the constructor of A. Line 2 will invoke the constructor of B using an instance of A. Line 3 does the same
But when we make class B extends A Then each time when we invoke the B() the superclass Constructor is also call.
I am not clear why this difference happens.Is it because only when we extend the B becomes the subclass of A. If we dont extend then B is just a class inside a Class A and not a subclass. Thanks in advance
Joined: Aug 03, 2002
Is it because only when we extend the B becomes the subclass of A? If we don't extend then B is just a class inside a Class A and not a subclass?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com