What is the difference between Abstract and Interface?

Answer Posted / jithin j

Interface: contain only abstract method and static and final (constant) variable.Even if we don't use static and final keyword it is considered as constant
Abstract: contain both abstract and non abstract method

Interface: class implements interface
Abstract : class extends abstract class

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an assembly in .net?

576


What is the difference between double and decimal in c#?

460


What is enum in c#?

536


What is public or shared assemblies ?

561


How garbage collection deals with circular references.

471






How does bitwise work?

508


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

522


How long will it take to learn c#?

527


What is difference between encapsulation and abstraction in c#?

462


What are the 2 kinds of data type conversions in c#?

511


While debugging a C# application can you change the value of a variable?

542


Can a constructor be static in c#?

523


What is expression c#?

506


Please explain the basic string operations used in c#?

553


What is nullable types in c#?

502