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

Explain the purpose of storyboard.targetproperty.

0 Answers  


What is meant by role based security? when we use this one

2 Answers  


To wrap up a call to a Web service the standard used is..?

0 Answers   Siebel,


Does asp.net still recognize the global.asa file?

0 Answers  


What the use of Form Authentication and windows Authentication?

1 Answers   NetCity, TCS,






Define static function?

0 Answers  


What is the answer for "Which configuration Tool your using means" ? we have to tell about IIS or .Net Framework or VSS? Give me in brief ?

3 Answers   eXensys,


Which template must you provide, in order to display data in a Repeater control?

1 Answers  


What is DTS package?

2 Answers   Accenture, TCS,


Code for updating the database by entering the data into textboxes in aspx form?

2 Answers   TCS, Wipro,


How to publish website

1 Answers   Syntel,


What is the difference between CC and BCC?

0 Answers   MCN Solutions,


Categories