What is an Interface and What is an Abstract Class?

Answers were Sorted based on User's Feedback



What is an Interface and What is an Abstract Class?..

Answer / meraj khan

Abstract class:
Abstract class act as base class, not instantiable, no
implementaiotn in base class but allow implementaiotn in
derived class with overide method, method must be abstract.
specially used in inheritance.

Interface:

Interface class dont have constructor, destructor,
always public modifier set to true
no implementation
cant used multiple inheritance instead of this we use
multiple interface

Is This Answer Correct ?    6 Yes 1 No

What is an Interface and What is an Abstract Class?..

Answer / lalit

An abstract class is a parent class that allows inheritance
but can never be instantiated

Abstract classes are the classes with no implementation of
methods or concerete implementation of methods

An Interface can inherit several interfaces.

Is This Answer Correct ?    2 Yes 3 No

What is an Interface and What is an Abstract Class?..

Answer / manoj kumar tripathi

We can not create object of abstract class.It is base class
which inherit by other class.we can give at least one
definition in the class.It support inheritance.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

Is there any property names “isnavigating”?

0 Answers  


How many validators do ASP.NET have?

0 Answers   QuestPond,


What is http post and http get?

0 Answers  


what is the difference between server.Transfer and response.redirect in .net

1 Answers  


What is the file through which you can customize your asp.net application?

0 Answers  






Elaborate differentiation between Cache and Application?

0 Answers   QuestPond,


What is paging in context of Memory?

0 Answers   Microsoft,


Describe the events in the life cycle of a web application.

0 Answers  


Define dll hell?

0 Answers  


what is the trace in ASP.NET

4 Answers  


What is the use of SmartNavigation property?

4 Answers  


when i want to use asp.net configuration for creat users and roles i recived this message: There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem: Unable to connect to SQL Server database. when i clicked the choose data source button that give me another message that is this: Use this page to configure how Web site management data such as membership is stored. You can use a single provider for all the management data for your site or you can specify a different provider for each feature. Your application is currently configured to use the provider: AspNetSqlProvider Select a single provider for all site management data Select a different provider for each feature (advanced) ------------------------- and this message was reapeted in other choose again. please help me if u know why i gave that message so i wont can creat my users and roles

0 Answers  


Categories