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 are the benefits of oop?

0 Answers  


class type to basic type conversion

0 Answers  


What makes a language oop?

0 Answers  


Difference between new operator and operator new

2 Answers  


Write a program to demonstrate the use of 'Composition' in C++

2 Answers  






What is a scope operator and tell me its functionality?

3 Answers   emc2,


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  


Write a program to accept a number and to print numbers in pyramid format? for eg:for a no. 5 1 212 32123 4321234 543212345

7 Answers  


What is coupling in oop?

0 Answers  


What is inheritance in oop?

0 Answers  


Write a program in c++ to read two floating point numbers and find their sum and average.

2 Answers  


How to overload new operator in c++

2 Answers  


Categories