Why can't we have instance(stack) of a class as a member of
the same class like eg.Class A{A obj;} as we can have self
refential pointer


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

Can you name some types of inheritance?

0 Answers   Motorola,


Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?

5 Answers  


Why static Function is used in C++?

4 Answers   TCS,


How to hide the base class functionality in Inheritance?

0 Answers   Viscus Infotech,


What is difference between pop and oop?

0 Answers  






define a string class. overload the operator == to compare two strings

2 Answers   Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,


Name an advantage of linked list over array?

11 Answers   IBM, Infosys,


what is the difference between class to class type conversion and copy constructor ?

2 Answers  


How to calculate the age from the date of birth by using the program?

2 Answers   Accenture,


How do you explain polymorphism?

0 Answers  


what are the ways in which a constructors can be called?

0 Answers  


Can private class be inherited?

0 Answers  


Categories