Difference between abstract class and interface

Answer Posted / ravi anand pathak

1)-Abstract class required two key word for declaring
abstract class.
Interface required interface keyword for declaring the
interface.
2)-Within abstract class we can declare concrite and
abstract both type of method.
Interface support only abstract method.
3)-Variable declared within abstract class are normal.
All variables are emplicitly final,public static within
interface.
4)-We required abstract keyword to declared abstract
keyword.
All methods areemplicitlypublic and abstract.
5)-We use extends kyeword to inheriate any abstract class.
We use implements kyeword to use interfaces.
6)-Only one abstract class can extends at a time(single
inheritence).
We can use multipleinterface in a class at asame time(just
like multiple overriding).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are relation objects in dataset?

723


What is the difference between an event and a delegate?

723


What is the use of web.config?

793


Does .NET runtime offer Deterministic Destruction or not?

763


8. Oop-Why and were we use Interfacse and Abstract class.

1787


What is textview control of .net mobile? : Microsoft dot net mobile

696


how to delete the record using data reader

2074


What is an interrupt? : Dot net architecture

708


What is IL code, CLR, CTS, GAC & GC?

784


6. Wcf- what is SOA

2043


How cache coherency is eliminated? : Dot net architecture

675


Which software is used for .net programming?

697


Explain what does the term "green architecture" mean? : .NET Architecture

721


Explain about generation?

744


5. Wcf- Session Managment

1731