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

Can I have a unique key as foreign key?

0 Answers  


hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.

0 Answers  


what is difference between const, static and readonly?

2 Answers   TVS,


IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE.

1 Answers  


What are the main advantages of using asp.net?

0 Answers  






Which is better viewstate or session?

0 Answers  


Is data edited in the Repeater control?

0 Answers   Siebel,


Name the control which can be used to reserve the space on web page for storing localized data.

3 Answers   IBM,


Define transparent caching with aop?

0 Answers  


What is caching and types of caching ?

2 Answers   Infosys,


What is ashx file in asp.net?

0 Answers  


Tell me the code snippet to show how we can return 404 errors from HttpError?

0 Answers  


Categories