What is the difference between Abstract and Interface?

Answer Posted / rajesh kushwaha

• Abstract classes can have concrete methods while
interfaces have no methods implemented.

• Interfaces do not come in inheriting chain, while
abstract classes come in inheritance.

Is This Answer Correct ?    15 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Covariance and contravariance in C#?

564


How do you serialize in c#?

476


What are controls in c#?

482


What is local function?

525


What is a statement c#?

510






Is static class thread safe in c#?

480


Explain the difference between “constant” and “read-only” variables used in c#?

515


Why do we need singleton pattern in c#?

491


What is the use of oops in c#?

508


Should I use double or float?

506


What is the use of main method in c#?

495


What are the benefits of using the aggregate method in linq?

507


What is an assembly in .net?

579


What is the use of ispostback in c#?

478


What is the purpose of constructor in c#?

451