What is the correct syntax for inheritance?




1) class aclass : public superclass


2) class aclass inherit superclass


3) class aclass <-superclass

Answer Posted / pushpa

class aclass : public superclass

Is This Answer Correct ?    33 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is encapsulation used?

579


What is difference between class and object with example?

566


What is debug class?what is trace class? What differences are between them? With examples.

1612


write a programe to calculate the simple intrest and compund intrest using by function overlading

1670


What is an advantage of polymorphism?

599






How long to learn object oriented programming?

568


what type of question are asked in thoughtworks pair programming round ?

1766


Advantage and disadvantage of routing in telecom sector

790


What is meant by multiple inheritance?

742


What are the types of abstraction?

560


Can main method override?

587


Is data hiding and abstraction same?

572


What is multilevel inheritance explain with example?

630


What are the benefits of polymorphism?

627


class type to basic type conversion

1843