What is the correct syntax for inheritance

a) class aclass : public superclass

b) class aclass inherit superclass

c) class aclass <-superclass


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are the benefits of oop in c++?

0 Answers  


What is #include math h in c++?

0 Answers  


When do we run a shell in the unix system?

0 Answers  


Which programming language is best?

0 Answers  


What are namespaces in c++?

0 Answers  






What is using namespace std in cpp?

0 Answers  


To what does “event-driven” refer?

0 Answers  


Explain how functions are classified in C++ ?

0 Answers  


What is scope of a variable? (LOLZ)

2 Answers   CA, TCS,


Can we define a constructor as virtual in c++?

0 Answers  


Difference between delete and free.

0 Answers  


How long does this loop run: for(int x=0; x=3; x++) a) Never b) Three times c) Forever

17 Answers   Datavance, Quark, VEL, Wipro,


Categories