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
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What language is oop?
What is the difference between abstraction and polymorphism?
What is the real life example of polymorphism?
How oops is better than procedural?
What is the purpose of polymorphism?
How do you define a class in oop?
Why is polymorphism important in oop?
What are objects in oop?
What is object-oriented programming? Webopedia definition
What is encapsulation in oops?
Where is pseudocode used?
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is abstraction encapsulation?
What is the importance of oop?