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

Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2032


Is react oop?

608


What is the difference between inheritance and polymorphism?

589


How Do you Code Composition and Aggregation in C++ ?

24194


What is abstraction oop?

623






How do you achieve runtime polymorphism?

569


Why it is called runtime polymorphism?

573


What are the 4 main oop principles?

685


What is polymorphism and its types?

593


What is the point of polymorphism?

584


Which type does string inherit from?

614


Can an interface inherit a class?

557


Why do we use inheritance?

628


Plese get me a perfect C++ program for railway/airway reservation with all details.

3427


What is encapsulation selenium?

554