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


Please Help Members By Posting Answers For Below Questions

Explain how to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

682


Explain the five stages in a dlx pipeline? : .NET Architecture

682


What is one way operation?

728


What is .net transaction?

673


how to change the application name?

1701


Can you explain control extenders?

686


define cache memory? : Dot net architecture

714


Explain about developer benefit from memory management?

713


Explain pipelining? : Dot net architecture

749


Explain the race around condition? : Dot net architecture

635


Can I create my own context attributes?

719


difference between Response.write,server.transfer and also which one is used when ?

1649


Explain about generation?

734


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form.

705


I can't be bothered with cas. Can I turn it off?

699