Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the differances between a abstract calss and
interface

Answers were Sorted based on User's Feedback



What is the differances between a abstract calss and interface..

Answer / 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

What is the differances between a abstract calss and interface..

Answer / gyan

abstract class may contain concreate methods with abstract
methods where as interface containls only abstract methods

by default all methods in interface are public
where as abstract class can contain all modifiers except
private


abstract class involves in inheriting chain . where as
interfaces there is no need to follow inherit chain

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is connection pooling and how to enable and disable connection pooling?

0 Answers  


What is difference Between Authentication and authorization?

0 Answers   MCN Solutions,


Anyone has Latest Microsoft ASP.NET Certification Dumps for these?

1 Answers  


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

0 Answers  


Which two properties are there on every validation control?

2 Answers  


Which data type does the rangevalidator control support?

0 Answers  


Descrie about response.buffer and repsonse.flush ?

2 Answers   ADP, Cognizant,


Is asp.net outdated?

0 Answers  


Explain about Application and Session Events ?

0 Answers  


What are the different types of Session state management options available with ASP.NET?

1 Answers  


Fetch one page value to another page without using state-managment ?

0 Answers   HCL,


In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely

0 Answers   Quest,


Categories