Difference between abstract class and interface
Answer Posted / shaveen kaushal
1)We define an Interface in the Java application with a
set of abstract methods without any implementation. Which
means all the methods of an interface are by default
abstract methods and public methods.
2)Once an Interface is defined in the application then any
class can implement that interface, in such case the class
must be implemented with all the mehtods of the respective
Interface otherwise the class will become as abstract class.
3)A class can implement any no. of interfaces, in such case
the class must be implimented with all the methods of those
interfaces otherwise the class will become as abstract class
| Is This Answer Correct ? | 17 Yes | 9 No |
Post New Answer View All Answers
What is .net mobile utility controls. Explain with an example? : Microsoft dot net mobile
What is gui programming? : .NET Architecture
Explain about microsoft visual studio?
What is a virtual memory? : .NET Architecture
What is .net mobile input validation. : Microsoft dot net mobile
HttpHendler and HttpModules
Explain .net mobile selectionlist control? : Microsoft dot net mobile
Xmlserializer is throwing a generic "there was an error reflecting myclass" error. How do I find out what the problem is?
What is the difference between an application and a program?
What actually happes when you add a something to arraylistcollection ?
What is a managed code? : Dot net architecture
What is the use of CLR in .NET?
What are the main Tools to develop .Net Application?
Different types of authentication modes in .net framework ?
What are the types of application software?