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 main purpose of inheritance law?
What do you mean by Encapsulation?
What is memory leak and memory corruption?
what are the disadvantages of C++?
25 Answers ATS, Infosys, UNI, Wipro,
why c++ is a highlevel language
3 Answers Satyam, Tech Mahindra,
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?
What is polymorphism explain its types?
what is graphics
design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }
what is object slicing
What are the benefits of oop?
What is a macro? And how is a macro same as a template?