What is an Interface and What is an Abstract Class?
Answer Posted / 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 |
Post New Answer View All Answers
What are the main differences between asp and asp.net?
What is the difference between table and query?
Explain the difference between webfarm and webgardens in .net?
Where code pages are used?
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
What are the new data controls in asp.net 2.0?
Explain difference between dataset and datareader?
Where you store Connection string in "Web.Config" file in ASP.NET?
How ViewstateMac works?
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
What is asp net objects?
If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
What is application variable in asp.net?
Which object is used to encapsulate the state of the client and the browser in ASP.NET?