Select from following answers:- 1, 2 3
- 2, 3, 4

- 3, 4
- All the above
- All Above
The subclass can inherit only the member variable and function not constructor if you want call the constructor of base class. You must have to create the object first of the base class.
When we declare as protected, it will availabe to subclass, it take intial value as zero for count variable, then it get increment.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator