What is the correct syntax for inheritance?




1) class aclass : public superclass


2) class aclass inherit superclass


3) class aclass <-superclass

Answer Posted / srikanth

class aclass inherit superclass

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you define a class in oop?

629


What are functions in oop?

586


What is property in oops?

569


What is difference between multiple inheritance and multilevel inheritance?

603


What is the fundamental idea of oop?

638






What is the purpose of enum?

583


Why is destructor used?

587


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2008


What is the point of polymorphism?

590


What is the oops and benefits of oops programming?

555


how to get the oracle certification? send me the answer

1670


What are the advantages of polymorphism?

577


What is class and object in oops?

613


Can we override main method?

609


Why do while loop is used?

579