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


Please Help Members By Posting Answers For Below Questions

if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

3099


Can you explain polymorphism?

802


How do you define a class in oop?

839


What do you mean by overloading?

788


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...

1813


What is destructor in oop?

786


What are the 5 oop principles?

823


Can abstract class have normal methods?

783


What are classes oop?

783


Can static class have constructor?

778


What is polymorphism and its types?

796


What are benefits of oop?

857


What is difference between pop and oop?

788


What is the difference between static polymorphism and dynamic polymorphism?

832


What is oops with example?

755