What is the correct syntax for inheritance?




1) class aclass : public superclass


2) class aclass inherit superclass


3) class aclass <-superclass

Answers were Sorted based on User's Feedback



What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / pushpa

class aclass : public superclass

Is This Answer Correct ?    33 Yes 0 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / mahreen

1) class aclass : public superclass

Is This Answer Correct ?    6 Yes 2 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / srikanth

class aclass inherit superclass

Is This Answer Correct ?    9 Yes 7 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / anusha

class aclass <-superclass

Is This Answer Correct ?    4 Yes 3 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / uuh

Obviously, it depends on which programming language is
being used.

Is This Answer Correct ?    2 Yes 2 No

What is the correct syntax for inheritance? 1) class aclass : public superclass 2)..

Answer / amit

class aclass:public superclass (in c#,c++)
class aclass inherit superclass(in vb.net)

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More OOPS Interview Questions

How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)

1 Answers  


What do you mean by multiple inheritance and multilevel inheritance? Differentiate between them.

2 Answers  


write a c++ program to find maximum of two numbers using inline functions.

3 Answers   IBM,


ambiguity regulation of multiple inheritance with example.

1 Answers  


Can you name some types of inheritance?

0 Answers   Motorola,






Can you explain polymorphism?

0 Answers  


what are the different types of qualifier in java?

0 Answers   TCS,


What is the default size allocated for array in the statement if size not specified " int a[] "

4 Answers   CTS,


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

0 Answers   Wipro,


why destructor is not over loaded?

5 Answers  


what is difference between objects and function

1 Answers  


Why is there no multiple inheritance?

0 Answers  


Categories