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
Explain different pipelining hazards? : Dot net architecture
Explain about generation?
What is one way operation?
how to delete the record using data reader
how to make and display a form without title bar?
What does the term "green architecture" mean? : .NET Architecture
What is difference between .net and visual studio?
Define an interrupt? : Dot net architecture
Explain about clr?
What is application frame host?
When do I need to use gc.keepalive?
What is the purpose of Accordian in jquery? Where it can be used?
Explain about metadata?
Explain about cookie less session state? : .NET Architecture
Can I create my own metadata attributes?