what is an interface and what is an abstract


What is an interface and what is an abstract class?

Please, expand by examples of using both. Explain why.  

In a interface class, all methods are abstract without execution where as in an abstract class some methods we can explain concrete. In interface, no accessibility modifiers are allowed.

An abstract class may have accessibility modifiers. Interface and abstract class are basically a set of rules which u have to follow in case you are using them (inheriting them).  

 

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: what is an interface and what is an abstract
Reference No:- TGS0310497

Expected delivery within 24 Hours