what is the difference between interface and abstraction?
Answer Posted / sajid
interface:
in interface,all methods must b abstract,by default all
members are PUBLIC,cant b implimented infact derived class
impliments its methods
interface can use multiple interface
abstract:
it is just like interface,not imolimented by itself,only
derived class can impliment abstract class or abstract
methods,abstract methods can b private unlike interface,cant
allow multiple inheritance
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Explain what is copy constructor?
Why do we parse in c#?
How do you specify a custom attribute for the entire assembly?
Can we overload the main method in c#?
What are the classes contained in a single .NET DLL ?
How does return work in c#?
What are the drawbacks of extending an interface as opposed to extending a class?
Is string a data type in c#?
Give an example to show for hiding base class methods?
If the original method is not static you can declare an override method to be static or not?
How many aware interfaces are there?
What is the difference between a variable and a literal?
Why References are stored on heap and variables on stack?
Are objects passed by reference in c#?
Why abstract class can not be instantiated?