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
Why is destructor used?
What is polymorphism in oops?
What causes polymorphism?
Can bst contain duplicates?
Which method cannot be overridden?
Why do while loop is used?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is the importance of oop?
what is the sylabus for priliminaries?
What is oops with example?
Why is polymorphism used?
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.
What is super in oop?
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?
If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?