what is abstract class ?
when is used in real time ?
give a exp
Answer Posted / manjunathtek
An Abstract Class is one in which the member function(s) at
the Base(Parent) Class are left undefined, but declared.
It's upto the Derived(child(ren)) Classes to Implement the
Functions declared in Base...
Ex:
Let us assume... As a father(Base Class), he has some Land
(Member Function), and he has not done any cultivation
(implementation) in it... As his Child(Derived Class), he
takes the Land(Member Function) from the Father(Base) and
does Agriculture(implementing the M.F. of Parent Class) in
the Child...
Concept of Inheritance...
Is it good enough!!!
| Is This Answer Correct ? | 30 Yes | 18 No |
Post New Answer View All Answers
What is polymorphism explain its types?
what type of question are asked in thoughtworks pair programming round ?
Can static class have constructor?
What is a class and object?
write a C++ program for booking using constructor and destructor.
What do you mean by Encapsulation?
Whats oop mean?
What is polymorphism and why is it important?
What are main features of oop?
What are the 5 oop principles?
class type to basic type conversion
What is basic concept of oop?
What is meant by oops concept?
What are different oops concepts?
Can we override main method?