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


Please Help Members By Posting Answers For Below Questions

How do you declare a variable in c#?

518


Explain the functionalities of satellite assembly?

554


What is difference between event and delegate in c#?

477


What basic steps are needed to display a simple report in crystal?

538


Can interface have virtual methods in c#?

471






Is ram a heap?

512


Can a struct inherit from an interface in c#?

515


How can i Spawn a Thread

527


What is extension method in c# and how to use them?

474


Explain the 3 types of properties in c# with an example?

547


What is type system in c#?

522


What is immutable in C#?

593


How to rotate an Image in C#?

582


Can you prevent a class from being instantiated?

596


What are the steps for creating clr trigger

569