What is the correct syntax for inheritance?
1) class aclass : public superclass
2) class aclass inherit superclass
3) class aclass <-superclass
Answer Posted / pushpa
class aclass : public superclass
| Is This Answer Correct ? | 33 Yes | 0 No |
Post New Answer View All Answers
What is destructor example?
What is polymorphism and its types?
What is for loop and its syntax?
What is abstraction in oop?
What causes polymorphism?
Can we create object of abstract class?
What is an advantage of polymorphism?
How do you answer polymorphism?
Can main method override?
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 is polymorphism explain?
Why is polymorphism needed?
What is protected in oop?
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...
What is the main purpose of inheritance law?