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 is this pointer in oop?
What is the difference between abstraction and polymorphism?
How do you define social class?
can we make game by using c
What is constructor overloading in oop?
What is encapsulation with example?
What is multilevel inheritance in oop?
Why oops is important?
What is oops concept with example?
What is balance factor?
write knight tour problem which is present in datastructure
What is polymorphism give a real life example?
Whats oop mean?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What are the components of marker interface?