i inheritance to subclass from super ( global- se24)
and i have 2 constructors
1. CONSTRUCTOR - from the super
2.CLASS_CONSTRUCTOR - of the sub
i want to add parameters to Class constructor and i cant i get this Error (Class constructors and destructors do not have parameters and exceptions) way? the CONSTRUCTOR of the super have parameters .
Naimesh Patel replied
Go to SE24.
Open your SubClass
And press the "Create Constructor" button
It will ask if you want to include the parameters from the Super class.
If you need than press Yes, else press NO.
So, when you create a reference of this class.
It will first call the Super's Constructor
Than Subclass's construtor.