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

write the prime no program in c++?

16 Answers  


Can a built-in function be recursive?

0 Answers  


What is the full form of india?

0 Answers  


What is guard code in c++?

0 Answers  


Which is most difficult programming language?

0 Answers  






What is DlgProc?

0 Answers   C DAC,


Define anonymous class.

0 Answers  


Explain function overloading and operator overloading.

0 Answers  


What are static variables?

0 Answers  


What does the ios::ate argument do?

0 Answers  


class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected

3 Answers   Quark,


What do you mean by a template?

0 Answers  


Categories