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
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is inheritance and how many types of inheritance?
write a C++ program for booking using constructor and destructor.
What is encapsulation selenium?
What is solid in oops?
How Do you Code Composition and Aggregation in C++ ?
Can you inherit a private class?
State what is encapsulation and friend function?
What is basic concept of oop?
when to use 'mutable' keyword and when to use 'const cast' in c++
Why do we use oop?
What is the use of oops?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
what is graphics