What is the differances between a abstract calss and
interface

Answer Posted / alb.shah

ABTRACT CLASS:
-------------
• It can not be instantiated
• It allow us to specify all access modifier except
Private
• A class inheriting this must implement all of its
abstract method
• A class can inherit only one abstract class at a
time.
• Abstract class can add more functionality with out
destroying child classes that were using old version.
• We can declare the following
1. Fields
2. Constructors
3. Static Constructors
4. Static Functions
5. Concrete Functions

INTERFACE :
---------
• It can not be instantiated
• It allows only public Access modifier
• A class implementing interface must provide body
for its entire member.
• A class can implement more than one interface at a
time.
• Adding of additional functionality will have an
effect on its child class due to the necessary
implementation of interface methods.
• We can not declare the following
1. Fields
2. Constructors
3. Static Constructors
4. Static Functions
5. Concrete Functions

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between ispostback and autopostback in asp net?

520


Explain the difference between overriding and overloading?

550


Explain the different types of assemblies?

531


What is a web server? What are the load limits in it?

592


How Can assign alias name for ASP.NET Web API Action?

942






What is custom attribute?

573


Explain asp.net mvc request life cycle? : asp.net mvc

496


What is the difference between server-side scripting and client-side scripting?

554


Who is using asp.net?

509


Explain the features that make asp.net more used framework? : asp.net mvc

489


What is paging in context of Memory?

659


Explain how do you deploy your asp.net application?

487


What is the use of autowireup in asp.net?

567


What are the Difference between asp.net and asp ?

573


What is the use of execute non query in asp.net?

487