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
Can an array be null c#?
What is the difference between ienumerable and icollection?
What is a variable in c#?
Why dependency injection is used in c#?
What is the task perform by clr?
What is use of private class in c#?
What are handlers in c#?
How many types of constructors are there?
What do you mean by for each loop?
What is a class level variable in c#?
How do I create a multilanguage?
What is inheritance c#?
Explain about multithreading?
What is difference between association, aggregation and inheritance relationships?
How many dimensions can an array have?