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 / veena
When a constructor is made private, object of that class
can not be created. That is called as Abstract class.
constructors can not be inherited. Moreover, when this
class is inherited, the base class object can not be
created. So we can not create the derived class object
also.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is encapsulation example?
What is use of overloading?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
program for insertion ,deletion,sorting in double link list
What is the real time example of encapsulation?
What is meant by oops concept?
What is the point of oop?
What is polymorphism oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What are the two different types of polymorphism?
What is static modifier?
What is a function in oop?
When not to use object oriented programming?
What is destructor in oop?