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

What is interval time of GC in .net

2 Answers  


Mention few asp.net validators.

1 Answers  


Can you edit data in the Repeater control?

4 Answers   Siebel Systems,


Explain repository pattern in asp.net mvc? : asp.net mvc

1 Answers  


What is request and response in asp.net?

1 Answers  


What is web application virtual directory ?

2 Answers   Satyam,


What is autopostback true?

1 Answers  


3. What goals do you have in your career?

1 Answers   Swatz Oils,


How to Open any web page by clicking any Any ASPControl like (Checkbox,radio button or Button) without calling its event and without going to Siverside code?

5 Answers   LG Soft,


If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?

1 Answers  


What is boxing?

8 Answers   IBM, Misys, Siebel Systems,


How to display Alert in ASP.NET

1 Answers   HCL,


Categories