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
What are relation objects in dataset?
What is the difference between an event and a delegate?
What is the use of web.config?
Does .NET runtime offer Deterministic Destruction or not?
8. Oop-Why and were we use Interfacse and Abstract class.
What is textview control of .net mobile? : Microsoft dot net mobile
how to delete the record using data reader
What is an interrupt? : Dot net architecture
What is IL code, CLR, CTS, GAC & GC?
6. Wcf- what is SOA
How cache coherency is eliminated? : Dot net architecture
Which software is used for .net programming?
Explain what does the term "green architecture" mean? : .NET Architecture
Explain about generation?
5. Wcf- Session Managment