What is the difference between Abstract and Interface?
Answer Posted / ntmohare
Abstract Class:
(1)it contains both abstract methods and non abstract methods
(2) object can't be created just through reference we are calling all the methods
(3) it is implemented by subclass i.e which class is extended from this
abstract class contains only nonabstract this situation also code will compile fine but problem at runtime
abstract can't be declared with Final Synchronized Native just your requirements you implement some methods in the abstract class
this class also contain Constructor
========
Interface contains all abstract methods
all methods compulsory implemented by particular class
interface does not contain Constructor
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
Is list passed by reference c#?
What is regex c#?
What is the difference between abstraction and encapsulation in c#?
What is difference between abstract class and interface in c#?
What does .length do in c#?
What is the difference between static and private constructor in c#?
What is the difference between array and arraylist c#?
Why we need get set property in c#?
What do you mean by hashtable c#?
What is string literal in c#?
What does || mean in programming?
How big is int16?
List down the different ide’s provided by microsoft for c# development.
What is the difference between method and function in c#?