why we are declare the function in the abstract class even
though we are declaring it in Derived class?
Answer Posted / vishal
Abstract class is nothing but placeholder for other classes
ie subclass.It defines common shared behavior in abstract
classes and if we need to override we need to define in its
subclass else we can use shared behavior in base class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the 4 pillars of oop?
What is coupling in oop?
What is abstraction in oops with example?
What do you mean by Encapsulation?
What is class in oop 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(); }
How to hide the base class functionality in Inheritance?
How does polymorphism work?
What are benefits of oop?
What is the difference between abstraction and polymorphism?
Can a varargs method be overloaded?
What is data binding in oops?
What is the renewal class?
What is the significance of classes in oop?
What is inheritance write a program to show use of inheritance?