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 is difference between polymorphism and inheritance?
what type of questions
Why do while loop is used?
Why do we need polymorphism in c#?
What are the 5 oop principles?
What is and I oop mean?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Why is polymorphism used?
What is new keyword in oops?
How to hide the base class functionality in Inheritance?
What is purpose of inheritance?
What is object in oops?
Which is better struts or spring?
Why do pointers exist?
What is encapsulation in oop?