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...


When should we use abtract class and Interface Class?Give
an Example

Answers were Sorted based on User's Feedback



When should we use abtract class and Interface Class?Give an Example..

Answer / eswar

Features are same but implementation are different then we
go for Interface

Features are same and some of the implementations are same
then we go for Abstract.

Is This Answer Correct ?    14 Yes 10 No

When should we use abtract class and Interface Class?Give an Example..

Answer / pallavi

Use an abstract class when you want to inherit only from the parent
Use an interface when you want to inherit from multiple sources
If the behaviour of base class is default behaviour of all the sub classes the use abstract. If it is not default behaviour for all the classes use interface.
Interface - CAN-DO relationship
abstract class - IS-A relationship

Is This Answer Correct ?    4 Yes 2 No

When should we use abtract class and Interface Class?Give an Example..

Answer / pravin more

If U Want to add some modules in ur application in the
feature then u can use abstract class.


---Pravin More

Is This Answer Correct ?    3 Yes 2 No

When should we use abtract class and Interface Class?Give an Example..

Answer / lenin n c

In abstract we need can create Object for that class and
cannot inherit it.

But in case of interface viceversa

Is This Answer Correct ?    2 Yes 17 No

Post New Answer

More ASP.NET Interview Questions

Demonstrate Render and PreRender?

0 Answers   QuestPond,


In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

0 Answers   Siebel Systems,


What data types do the RangeValidator control support?

2 Answers   Siebel Systems,


Is overloading possible in web services?

3 Answers   Microsoft,


Does the following statement executes successfully: Response.Write(?value of i = ? + i);

4 Answers   TCS,


What is a user developed application?

0 Answers  


How can you implement the postback property of an asp.net control?

0 Answers  


How asp.net mvc differs from asp.net web forms? : asp.net mvc

0 Answers  


where should write the connection string Show that it will apply whole pages in the website

5 Answers   Symco,


Explain what is viewstate?

0 Answers  


why security trimming attribute?

1 Answers  


what is AutoEventWireUp and what is the use of This property explain in details?

0 Answers   ITC Infotech,


Categories