what is the difference between interface and abstraction?
Answer Posted / navin c. pandit
In Interface, all the member functions are abstract implicitly
so it is imp. to define all fn. declared inside Interface.
Moreover, we cann't define a fn. or we cann't declare any
member variable in an Interface. Also, we cann't declare or
define any non-abstract method in Interface.
In Abstract class, we can declare an abstract method as well
as we can also define a non-abstract method. We can also
declare a variable member in abstract class.
In both the condition, declared abstract method is
implemented out side the class i.e in derived class which
inherits Interface/Abstract class, whatever you have used.
Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
What is dll in c#?
In object oriented programming, how would you describe encapsulation in c#?
What is static noise?
If I want to override a method one of class A and in class b then how do you declare?
What is scope c#?
How to open a new form on button click in Windows forms?
Where do we use static class in c#?
What is the difference between method overriding and method overloading?
How many types of variables are there in c#?
What is overriding in c#?
2. What happened when BO object has been called?
Where is c# compiler located?
What is array and types of array in c#?
Why do we use Design Pattern in C#?