What is the difference between Abstract and Interface?

Answer Posted / nikhila

Abstract class contain both complete and incomplete methods
The implementation for abstract methods will be in derived class. Access specifier will allow

Interface contains only incomplete methods.The implementation will be in other class.Access specifier will not allow.by default public can use

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is marshalling and what are different kinds of marshalling?

507


How many constructors can a class have in c#?

485


How you will create satellite assemblies?

492


What is overloading in c#?

486


Why to use lock statement in c#?

499






Can we have multiple threads in one app domain?

527


How do I start a program in c#?

495


Explain about c# language.

603


Why do we need serialization?

444


Are cao stateful in nature?

480


What is lazy loading c#?

506


Write one code example for compile time binding and one for run time binding? What is early/late binding?

603


What is meant by generics in c#?

507


What is the difference between writeline and write in c#?

429


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

498