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

Is razor a programming language?

535


How can you implement encapsulation in asp.net?

11314


Name some asp objects?

553


Explain how can we access static variable?

551


How to prevent client side validation from the ASP.NET validation controls?

579






What is the maximum number of classes that can be contained in one dll file?

683


Explain about asp.net 2.0 themes?

559


Which methods validate all the controls on a page?

550


Explain what does wsdl stand for?

561


What is the difference between runtime version and version?

509


How many ways are there to maintain a state in .net? What is view state?

592


What is marshalling ? Is it a part of asp.net ?

614


Explain asp.net mvc request life cycle? : asp.net mvc

494


They mostly asked difference between versions of technologies

957


What is ascx?

539