what is the difference between interface and abstraction?

Answer Posted / navin c. pandit

In Interface, all the member functions are abstract implicitly
so it is imp. to define all fn. declared inside Interface.
Moreover, we cann't define a fn. or we cann't declare any
member variable in an Interface. Also, we cann't declare or
define any non-abstract method in Interface.

In Abstract class, we can declare an abstract method as well
as we can also define a non-abstract method. We can also
declare a variable member in abstract class.

In both the condition, declared abstract method is
implemented out side the class i.e in derived class which
inherits Interface/Abstract class, whatever you have used.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many classes are there in classification?

519


What is datasource c#?

500


Why is xml called extensible?

505


What do you mean by directing?

495


Is it possible to nest cfml conditional tags?

547






What is difference between value and reference types in C#.NET

527


What is dbcontext c#?

493


What are the uses of delegates in c#?

586


Give an example of a ctype.

567


What is hash c#?

506


Is versioning applicable to private assemblies?

575


What is the purpose of escape sequence?

588


How can you set image source dynamically from c# application to ”test.png” file?

644


what are nullable types in c#

534


What is form feed in c#?

575