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 WPF and WCF?
Whate are resource files? How are they used in .net?
Explain 'managed' mean in the .NET context
Explain the difference between l1 and l2 cache? : .NET Architecture
Why the config file might not be writable
How does .net remoting work?
can u give me real example of how web.config overrides the machine.config file?
HttpHendler and HttpModules
What is the purpose of cache? How is it used? : Dot net architecture
Define domestic architecture artifacts? : Dot net architecture
Are there any third party logging components available?
Explain the difference between inprocess vs out process session state : Dot net architecture
Do you know textbox and textview controls of .net mobile? : Microsoft dot net mobile
What is a managed code? : Dot net architecture
Explain .net mobile input controls? : Microsoft dot net mobile