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 / sillu nu oru c coder
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.
the above ans is irrelevant to the current situation,
here the thing is, a constructor cannot b private coz there
is no use of .
but if a situation occurs as such in the given prob, yes the
space is reserved for that useless private constructor.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between procedural programming and oops?
What is multilevel inheritance in oop?
Is oop better than procedural?
Whats is abstraction in oops?
What is oops with example?
What is abstraction oop?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
Can we have inheritance without polymorphism?
What is interface? When and where is it used?
any one please tell me the purpose of operator overloading
Is enum a class?
Why oops is important?
What is pure oop?
Why is oop useful?
Give two or more real cenario of virtual function and vertual object