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
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is oops concept with example?
What is oops in simple words?
What is overriding vs overloading?
Why multiple inheritance is not possible?
Why is destructor used?
How do you explain polymorphism?
What is pointer in oop?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is data binding in oops?
What does oop mean in snapchat?
What does and I oop mean?
Can we create object of interface?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.