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

What is .dbml file?

471


What is static variable in c#?

483


Why do we still see so much non-oo code written in c# today?

479


What is int32 maxvalue?

506


Explain the difference between Response.Write () and Response.Output.Write ().

524






How can we sort the elements of the array in descending order?

522


What is the difference between “finalize” and “finally” methods in c#?

463


What are the benefits of using windows services:

536


What is static and use of it?

463


How does foreach loop work in c#?

476


What is the difference between const and static read-only?

492


how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used

2389


Explain how can I get around scope problems in a try/catch?

475


What is call back method?

507


How do I convert a string to an int in c#?

512