What is Interface and Abstraction (in real time scenario)
Answer Posted / pratap kumar jna
Interface:
1.Through interface we achive the multiple inheritance...i
meeans one class can implmemnts multiple interface.
2.Interface only contains abstract method means only
signature part..
LIKE int method1(int x,int y);
3.we achive actual run time polymorphism....
ABSTRACT :
Abstract class contain abstract and concrate mthod..
class can inhrit only one abstarct class..
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
Can we override main method in c#?
What is the use of console application in c#?
How Is The Dll Hell Problem Solved In .net?
How C# 4.0 supports dynamic programming language?
Define xslt.
What is reflection c#?
Why do we need abstract class?
What type is string in c#?
Is php easier than c#?
How can you set image source dynamically from c# application to ”test.png” file?
What is the use of readkey in c#?
Can abstract class be sealed?
What is a byte in c#?
If the original method is not static you can declare an override method to be static or not?
What is difference between events and delegates?