What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answer Posted / mahreen
1) class aclass : public superclass
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is polymorphism and types?
What is data binding in oops?
What is abstraction oop?
What is new keyword in oops?
How to call a non virtual function in the derived class by using base class pointer
Can main method override?
What is difference between class and object with example?
How to hide the base class functionality in Inheritance?
Why oops is important?
What is abstraction in oop with example?
What is polymorphism and its types?
c++ program to swap the objects of two different classes
Write a program to sort the number with different sorts in one program ??
What is polymorphism and example?
What is the significance of classes in oop?