When a private constructer is being inherited from one
class to another class and when the object is instantiated
is the space reserved for this private variable in the
memory??
Answer Posted / balakishore
before invoking derived class constructor base-class
constructor should be called.
1. first base-class object will be created then derived-
class object will be created.
2. here the base class constructor is private, so derived-
class cannot invoke it.
No object is created in derived-class.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is oops and its features?
What is destructor give example?
Can bst contain duplicates?
What is the difference between inheritance and polymorphism?
What is polymorphism what are the different types of polymorphism?
How to improve object oriented design skills?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is polymorphism in oop example?
What is encapsulation in simple terms?
Is this job good for future? can do this job post grduate student?
Whats oop mean?
What are the data types in oop?
What are the features of oop?
Why is destructor used?
What is abstraction oop?