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 |
Can I have a unique key as foreign key?
hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.
what is difference between const, static and readonly?
IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE.
What are the main advantages of using asp.net?
Which is better viewstate or session?
Is data edited in the Repeater control?
Name the control which can be used to reserve the space on web page for storing localized data.
Define transparent caching with aop?
What is caching and types of caching ?
What is ashx file in asp.net?
Tell me the code snippet to show how we can return 404 errors from HttpError?