What is the difference between and interface and an
abstract class ?
Answer Posted / murali
1.interface contains only abstract methods and varibles
2.whenever a class is not implementing that interface that
class should be an abstract class
3.An interface cannot implement another interface but an
abstract class can implement onther interface
4.An interface can extend more than one interface
5.An abstract can implment more than one interface
| Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
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(); }
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is a function in oop?
How oops is better than procedural?
Why is there no multiple inheritance?
When not to use object oriented programming?
What is protected in oop?
What are the 3 principles of oop?
Why do we use polymorphism in oops?
Can bst contain duplicates?
What are two types of polymorphism?
What is property in oops?
What is abstraction in oop?
Which is better struts or spring?
How to use CMutex, CSemaphore in VC++ MFC