What?s the difference between an interface and abstract class?

Answer Posted / rambabu gonela

java does't support multiple inheritance..to overcome this
problem.. java introduce new concept that is interface,
we cannot intantiate both interface and abstractclass.1)by
default in interface variables are public,static and final,
in abstract class we have to declare explicitly 2) methods
in interface public,nonstatic and abstract,where as in
abstract class we have to give....
3)we can implements more than one interfaces.. but we can
extends only one class..

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static variable in c#?

510


What debugging tools come with the .NET ssSDK?

704


Why do we use readonly in c#?

500


What do you mean by default constructor?

619


What is hashtable in c# net with example?

482






Is java better than c#?

526


What is the difference between delegates and events in c#?

432


Can properties be private in c#?

493


What is xor operation?

538


What are functions c#?

574


What is the difference between // comments, /* */ comments and /// comments?

507


Define constructor in c#.

521


Why do we use lambda expression in c#?

512


Why do we use dataset in c#?

497


Is c# the same as d flat?

511