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
Can you describe iuknown interface in short?
Write a sample code to write the contents to text file in c#?
How do you name a variable in c#?
Does a loop recorder have to be removed?
What are the types of inheritance in c#?
What is an array of arrays called?
Whats an assembly? Describe the importance of assembly?
What is stringbuilder c#?
What are the boolean data types in c#?
Why should you override the tostring() method?
Give an example of a directcast.
What is the namespcae generally given to the webpage of the .NET Framework ?
Explain how can you clean up objects holding resources from within the code?
Why we use get and set property in c#?
Can I use exceptions in c#?