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
Does .NET runtime offer Deterministic Destruction or not?
Define a virtual memory? : Dot net architecture
12. Types of polymorphisem[Run and Design Exp.]
8. Oop-Why and were we use Interfacse and Abstract class.
Explain about code access security?
How cache is used? : Dot net architecture
what is polymorphism and advantage ?
What is the purpose of Accordian in jquery? Where it can be used?
Explain about httpruntime.cach.get(); method?
Can I create my own permission set?
Explain some of the disadvantages due to microsoft.net?
i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?
What is ILDASM ?
How can I create a application?
Can you explain update progress control?