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

Why is destructor used?

589


What is polymorphism in oops?

565


What causes polymorphism?

581


Can bst contain duplicates?

682


Which method cannot be overridden?

584






Why do while loop is used?

583


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1155


What is the importance of oop?

621


what is the sylabus for priliminaries?

1697


What is oops with example?

568


Why is polymorphism used?

590


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6490


What is super in oop?

601


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1639


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

948