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 is datagrid c#?

472


What is the data encapsulation?

485


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

482


C# called c sharp why?

548


How does insertion sort work?

507






What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?

601


What is an ienumerable in c#?

540


How to add controls dynamically to the form using c#.net.

470


What are collections in c#?

465


What is readline library?

502


Which of these statements correctly declares a two-dimensional array in c#?

649


What is system console writeline in c#?

467


Explain About Iunknown interface Queue

541


In c#, what will happen if you do not explicitly provide a constructor for a class?

518


What does a constructor do c#?

492