What is an Interface and What is an Abstract Class?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Describe the difference between inline and code behind - which is best in a loosely coupled solution Tightly coupled - INLINE
Where can we set the specific variables for a application and Session objects ?
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 ?
why many web.config files are used in are project
hi all, can we sort the data set without using the gridview sort method
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?
What are the types of validation in asp net?
What methods are fired during the page load?
7 Answers InSync Tech-Fin, Siebel Systems, Visual Soft,
Can we have 2 web config files?
What type of code (server or client) is found in a Code- Behind class?
What are the elements of a website?