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


Please Help Members By Posting Answers For Below Questions

Why asp.net is better than php?

683


What is .net framework and what are the main components of it?

571


What is the importance of Global.asax in ASP.NET?

755


Where is asp.net view state stored?

730


What are the navigation ways between pages available in ASP.NET?

775


Why do we need a web application session?

699


When you use Ajax controls in the ASP.NET application?

774


Can I tap into other windows livetm services?

749


When should I use server transfer and response redirect?

699


What is the usie of activex control in .net?

731


What New Features comes with ASP.NET Web API 2.0?

751


What is the Intermittent crashing of application in production?

761


i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?

1736


Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

1804


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

720