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
WHAT IS THE DIFFERENCE BETWEEN OBJECT BASED & OBJECT ORIENTD PROGRAMMING LANGUAGE.(GIVE AT LIST 4 PIONT)
What is super in oop?
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
What is for loop and its syntax?
what is runtime polymorphism? For the 5 marks.
What is polymorphism ? Explain with examples
oops concept is used for?
What are oops methods?
What is encapsulation in oop?
4. What do you mean by a prototype? Define analysis prototype
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??