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


Please Help Members By Posting Answers For Below Questions

How does c# achieve polymorphism?

469


How more than one version of an assembly can keep in same place?

514


What is super class in c#?

458


Describe an interface class?

560


What is lazy loading and eager loading in c#?

482






What is array and arraylist?

536


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

482


How do you serialize in c#?

468


What is whitespace in c#?

490


Explain About sn.exe

498


What is the .net datatype that allows the retrieval of data by a unique key?

454


Can a sealed class be used as a base class?

528


What is xaml file in c#?

530


what class is underneath the sortedlist class?

549


What is an Interface in C#?

540