What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answer Posted / mahreen
1) class aclass : public superclass
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
• What are the desirable attributes for memory managment?
What is abstraction in oops with example?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What are the advantages of polymorphism?
Which language is not a true object oriented programming language?
What is difference between data abstraction and encapsulation?
What is the difference between inheritance and polymorphism?
What is abstraction with example?
What is class and example?
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?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why do we use class in oops?
Why is encapsulation used?
Is html an oop?
What is debug class?what is trace class? What differences are between them? With examples.