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

Is everything an object c#?

726


What basic steps are needed to display a simple report in crystal?

763


what is IDisposal interface,IComparable,IEquatable,IFormatable

788


What is a console operator?

693


What is an interface class in c#?

777


Why we use get and set method in c#?

721


When should I throw an exception?

799


What are fields in c#?

696


What is argument in c#?

721


How big is int16?

727


Is as keyword in c#?

695


What is difference between constants and readonly in c#?

802


How can encapsulation be achieved?

845


Does c# support properties of array types?

741


What are tuples c#?

729