what is abstract class ?
when is used in real time ?
give a exp
Answer Posted / pradeep
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...
The most real time example of abstract class and interface
is bulding a house
1)concrete methods are explained with completed house.
2)abstract classes are explained with completed house but a
little bit of work left
3)interfaces are explained with taking a building plan
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
What is destructor give example?
What is methods in oop?
Why is polymorphism needed?
What is the difference between encapsulation and polymorphism?
Can a destructor be called directly?
What does I oop mean?
What is the main purpose of inheritance law?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
Can abstract class have normal methods?
What is balance factor?
What type of loop is a for loop?
What is multilevel inheritance in oop?
How do you define social class?
Whats is abstraction in oops?
What is the difference between static polymorphism and dynamic polymorphism?