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 is cache coherency and how is it eliminated? : Dot net architecture
Explain difference between machine config vs. Web config : Dot net architecture
Explain .net mobile events? : Microsoft dot net mobile
Explain difference between machine config vs. Web config? : .NET Architecture
how to change row background color in gridview
What is .net mobile utility controls. : Microsoft dot net mobile
What's the difference between an application and a program?
What is .net mobile images control. Explain with an example? : Microsoft dot net mobile
What are the main Tools to develop .Net Application?
what are the fundamental and common properties of .net controls?
Explain how cache is used? : Dot net architecture
What is the use of CLR in .NET?
What is the mesi? : Dot net architecture
What is Video Streaming in .net??
Explain write back and write through caches? : Dot net architecture