What is the correct syntax for inheritance?




1) class aclass : public superclass


2) class aclass inherit superclass


3) class aclass <-superclass

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overloading in oop?

789


What is class in oop with example?

855


write string class as your own class in java without using any built-in function

2236


program for insertion ,deletion,sorting in double link list

2464


Where is pseudocode used?

764


How can you overcome the diamond problem in inheritance?

976


Why is polymorphism important in oop?

836


Advantage and disadvantage of routing in telecom sector

1054


what is the drawback of classical methods in oops?

3141


write a program to find 2^n+1 ?

1819


What is inheritance and how many types of inheritance?

841


What is overloading in oops?

864


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1856


when to use 'mutable' keyword and when to use 'const cast' in c++

1907


What is difference between oop and pop?

901