What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answers were Sorted based on User's Feedback
Answer / uuh
Obviously, it depends on which programming language is
being used.
| Is This Answer Correct ? | 2 Yes | 2 No |
What is the difference between abstraction and polymorphism?
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
when to use 'mutable' keyword and when to use 'const cast' in c++
define a string class. overload the operator == to compare two strings
2 Answers Birla, Ericsson, HCL, Infosys, Infotech, MCAS, Satyam,
What is an example of genetic polymorphism?
What is the benefit of oop?
How do you achieve runtime polymorphism?
What is encapsulation?
Which type does string inherit from?
What is the difference between the c++ & java?
When is it necessary to use member-wise initialization list in C++?
Is this job good for future? can do this job post grduate student?