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 is abstraction in oop?
What is the main purpose of inheritance law?
What is polymorphism used for?
What is overriding in oop?
What is oops with example?
What is coupling in oop?
What is destructor example?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What are oops functions?
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(); }
write a program to find 2^n+1 ?
What is class encapsulation?
What exactly is polymorphism?
What do you mean by Encapsulation?