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

Define Final Class in C#

544


Are c# constructors the same as c++ constructors?

527


What is use of a HashTable in .NET?

699


Can scriptable objects have methods?

496


What is the difference between select and selectmany?

436






What is uint c#?

454


what is object-oriented programming (oop) language?

483


Can abstract class have parameterized constructor?

497


How to block a class from being inherited further?

481


How to implement delegates in c#.net

547


How do you concatenate in c#?

487


What is the difference between delegates and superdelegates?

466


What are the access modifiers in c#?

497


How does c# generics and c++ templates compare?

468


What is an iqueryable in c#?

501