Difference between abstract class and interface
Answer Posted / niraj kumar
)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 lists. Explain with an example? : Microsoft dot net mobile
What size is a .net object?
Explain what does the term "green architecture" mean? : Dot net architecture
What is msil, and why should my developers need an appreciation of it if at all?
Explain the use of virtual, sealed, override, and abstract.
Explain the types of memory management? : Dot net architecture
Explain about developer benefit from memory management?
Explain about cookie less session state? : .NET Architecture
Describe the Managed Execution Process in .NET?
Explain what does the term "green architecture" mean? : .NET Architecture
Explain the five stages in a dlx pipeline? : .NET Architecture
What is an asssembly qualified name? Is it a filename? How is it different?
What are bindings?
What is the problem with .net generics?
Can you explain server controls in atlas?