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


Which among the following two is best and why? Abstract
Class and Interface. What is the major difference in between
those two except the discrete methods and methods with
function definition.

Answers were Sorted based on User's Feedback



Which among the following two is best and why? Abstract Class and Interface. What is the major diff..

Answer / anitha

a)for Future, we can provide extra services in Abstract
Class ,these futures can able to access all of its
Clients. And also it supports reusability.
suppose the implementer need not provide implementation
for all the methods.

Where as in Interface we don’t have this future(reusability
and extra servicess).
each implementer need to provide
implementation for all the methods and
also we cont provide extra services in
future.The interface should be constant.


b)Interface can support multiple inheritance where as
abstract class does not.

Is This Answer Correct ?    2 Yes 0 No

Which among the following two is best and why? Abstract Class and Interface. What is the major diff..

Answer / avinash

Interface:
Can inherit more than one Interface.
Cannot contain concret Methods.
Cannot specify Access Modifiers.( by default all are Public)

Abstract:
Cannot inerit more than one abstract class.
Can contain concrete Methods.
Can specify Access Modifiers.

Is This Answer Correct ?    1 Yes 0 No

Which among the following two is best and why? Abstract Class and Interface. What is the major diff..

Answer / jignesh contractor

(1) Interface have no concrete methods implemented while
abstract class can have.

(2) Interface can come into the chain of inheritance while
Abstract class can't.

Is This Answer Correct ?    2 Yes 2 No

Which among the following two is best and why? Abstract Class and Interface. What is the major diff..

Answer / annn

Interface:
Cannot have access modifier
Cannot have concrete methods
Is a part of inheritance
we can create a object of interface

Abstract:
Can have access modifier
Can have concrete methods
Is not a part of inheritance
we cannot create a object of interface

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Dot Net General Interview Questions

In Mvc Architecure what is view?

1 Answers   TCS,


What is the intermediate language between asp and asp.net1.0?

0 Answers  


Explain the procedure to add assemly to gac to make it shared one?

0 Answers  


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

0 Answers  


What is "common language runtime" (clr) in .net?

0 Answers  


Explain how com+ related to the dna architecture?

0 Answers  


What is Full trust permission set in .Net

0 Answers  


what is event inheritance and event delegation?

1 Answers  


What are the improvements made in cas in .net 4.0?

0 Answers  


What is meant fulltrust?

1 Answers  


What are the collections you've used?

0 Answers  


Explain .net framework overview?

0 Answers  


Categories