What is the correct syntax for inheritance?




1) class aclass : public superclass


2) class aclass inherit superclass


3) class aclass <-superclass

Answer Posted / anusha

class aclass <-superclass

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 main oop principles?

685


What is the renewal class?

2171


How to hide the base class functionality in Inheritance?

640


Why do we need oop?

671


What is overriding in oop?

550






class type to basic type conversion

1841


What is stream in oop?

841


Why is polymorphism important in oop?

637


What is the significance of classes in oop?

590


What is multilevel inheritance explain with example?

630


What is destructor in oop?

625


Can you name some types of inheritance?

641


What are the 4 pillars of oop?

674


How to call a non virtual function in the derived class by using base class pointer

5278


What does no cap mean?

592