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 / uttama
constructors can not be inherited!
bcoz their work is to initialise the object of the class to
which they belong to!
so if they get inherited,how can they initialise the object
of the derived class!
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
What are main features of oop?
class type to basic type conversion
What is a function in oop?
What is class encapsulation?
Can static class have constructor?
What is object in oop?
What is encapsulation with real life example?
Why do we use polymorphism?
Why multiple inheritance is not allowed?
hi all..i want to know oops concepts clearly can any1 explain??
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
How does polymorphism work?
Can we create object of abstract class?
What is inheritance and how many types of inheritance?
What is encapsulation example?