What is the difference between Abstract and Interface?

Answer Posted / vishal singh

In an interface class, all methods are abstract - there is
no implementation. In an abstract class some methods can
be concrete - there can be implementation. In an interface
class, no accessibility modifiers are allowed - are public
by default. In an abstract class accessibility modifiers
are allowed.

Is This Answer Correct ?    146 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does string format do?

477


What do you mean by default constructor?

607


What are nested classes in c#?

552


Can datetime be null c#?

486


Is c# good for beginners?

475






What does ienumerable mean?

482


What is literal control

586


how background thread access to ui control?

591


Can a dictionary have duplicate keys c#?

482


How is a loop recorder monitored?

506


What is a decimal c#?

472


What's the difference between an integer and int?

533


List the difference between the virtual method and the abstract method?

491


What is hierarchical inheritance in c#?

489


What is difference between string and string builder?

527