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

Describe the difference between inline and code behind - which is best in a loosely coupled solution Tightly coupled - INLINE

2 Answers  


Where can we set the specific variables for a application and Session objects ?

2 Answers   Siebel,


Is It Possible For Whole Page is Saved In View State? What Is View State?

2 Answers   Phoenix Technologies,


How does dataset acts in a disconnected fashion ?

3 Answers   TCS,


why many web.config files are used in are project

2 Answers  






hi all, can we sort the data set without using the gridview sort method

1 Answers   CGI,


What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?

0 Answers  


What are the types of validation in asp net?

0 Answers  


What methods are fired during the page load?

7 Answers   InSync Tech-Fin, Siebel Systems, Visual Soft,


Can we have 2 web config files?

0 Answers  


What type of code (server or client) is found in a Code- Behind class?

2 Answers  


What are the elements of a website?

0 Answers  


Categories