What is the difference between Abstract and Interface?

Answer Posted / ram praswesh kumar

[1]:-> An abstract class contain abstract method and non-
abstract method, but In interface all method are implictly
abstract.
[2]:-> An abstract base class can have private,public and
protected access specifier but all member in interface are
implicitly public.
[3]:- A class can inherit only single abstract class but
can implement more than one interface.
[4]:- An abstract class can implement interface but
interface cannot extend abstract class even concrete class.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between abstract class and interface in c#?

705


What is static variable in c#?

671


What is args c#?

708


Can I define a type that is an alias of another type (like typedef in c++)?

757


What is use of FormBoarderStyle Propertie

693


What are predicates in c#?

720


What is var c#?

669


What is JIT (just in time)? how it works?

730


What is the difference between an application domain and a process?

683


Define acid rule of thumb for transactions in c#.

656


What is the difference between array and arraylist c#?

646


What are virtual classes in c#?

730


What's c# ?

763


What is class in oops with example in c#?

677


What does console readkey do in c#?

686