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

What is this interview room ? Is it a class or an object.

3 Answers   CybAge, NSN, Wipro,


What is the problem with multiple inheritance?

0 Answers  


What is class encapsulation?

0 Answers  


Why polymorphism is used in oops?

0 Answers  


What are the 5 oop principles?

0 Answers  






They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

0 Answers  


What is an orthogonal base class?

2 Answers  


What are constructors in oop?

0 Answers  


difference between static and non-static variables?

2 Answers  


WHAT'S THE OOPS BASIC OOPS CONCEPTS IN DOTNET

1 Answers  


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output

0 Answers  


What is abstraction with example?

0 Answers  


Categories