what is abstract class ?
when is used in real time ?
give a exp
Answer Posted / ramakrishna yechuri
An Abstract class ia class which consists at least one
abstract method(in complete method).
Advantage is the user can implement the method body as per
his require ment.
ex: connect(){} ,I implement to conncect to oracle
database,u implement to conncet to sybase,my friend
implement this method to connect to oracle db. same connect
method acting in different forms (polymorphisim).
Note: Always Interfaces is better than Abstract class,becoz
Programming to Interface is better than programming to
classes.
To avoid dependency Injection problems.(spring).
Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What are constructors in oop?
What is polymorphism in oop example?
How do you define a class in oop?
Why we use classes in oop?
What causes polymorphism?
What is oops concept with example?
can inline function declare in private part of class?
any one please tell me the purpose of operator overloading
What is polymorphism what is it for and how is it used?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why is oop better than procedural?
Is this job good for future? can do this job post grduate student?
What are the features of oop?
Why is polymorphism used?
What does and I oop mean in text?