Skip to Content
0
Mar 10, 2015 at 10:00 AM

Constructor-OOP

52 Views

Newbie question....

In both super class and subclass i am using constructor.The problem is arising when i am creating objects.The main constructor is being initialized twice,once there when super class object creating and another due to mandatory addition of "super->constructor" in subclass constructor method.How can i make sure that the super class constructor does not initialize twice.