What is the differances between a abstract calss and
interface
Answer Posted / kanan
Abstract class: You can inherit only one class.
Interface: You can inherit more than one interface.
Abstract class: It contains both completed and uncompleted
(abstract) methods.
Interface: It only contains uncompleted methods (methods
without body).
Abstract class: Access modifiers are there for methods and
properties.
Interface: It does not have access modifier for methods or
properties. By default they are public.
Abstract class: Fast
Interface: Require more time to find actual method in classes.
Abstract class: It can contain fields and constants.
Interface: no fields can be defining in interface.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What does it mean when someone says I oop?
How do you explain polymorphism?
What is encapsulation in ict?
how to get the oracle certification? send me the answer
How can you overcome the diamond problem in inheritance?
What are oops methods?
What is encapsulation with example?
What is pointer in oop?
c++ program to swap the objects of two different classes
What is the real time example of inheritance?
How Do you Code Composition and Aggregation in C++ ?
What does and I oop and sksksk mean?
How long to learn object oriented programming?
What is encapsulation c#?
What is ambiguity in inheritance?