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
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?
Can you explain polymorphism?
How do you define a class in oop?
What do you mean by overloading?
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...
What is destructor in oop?
What are the 5 oop principles?
Can abstract class have normal methods?
What are classes oop?
Can static class have constructor?
What is polymorphism and its types?
What are benefits of oop?
What is difference between pop and oop?
What is the difference between static polymorphism and dynamic polymorphism?
What is oops with example?