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
What is singleordefault?
What is a private method in c#?
What is the difference between struct and class c#?
What is a c# delegate?
Can I get the name of a type at runtime?
What is the use of tryparse in c#?
Are private members inherited in c#?
what is IEquatable
what optimizations does the c# compiler perform when you use the /optimize+ compiler option?
What is difference between struct and class in c#?
Can you specify nested classes as partial classes?
How to properly clean up excel interop objects?
What is parallel programming in c#?
Define Virtual folder?
What is var c#?