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 a namespace server?

491


Name the connections does microsoft sql server support?

494


What is an int c#?

495


What types of object can I throw as exceptions?

551


What is c# best for?

540






Is comparable a functional interface?

514


What is a destructor in c#?

537


How do you concatenate in c#?

502


What is reference types in c#?

489


What is meant by generics in c#?

513


What is call back method?

528


Which of these string definitions will prevent escaping on backslashes in c#?

581


What is lastindexof c#?

492


What is use of hashtable in c#?

496


Is xml tags are case sensitive?

494