what is abstract class and method..

Answer Posted / shivanand arur

Abstract class is a class which can have both, abstract and non-abstract methods. Abstract methods are the one's which are just declared in the class but does not have any body inside it. The abstract classes are defined by a keyword "abstract". The class which inherits this abstract class, has to declare the method in it and has to give its function body...An abstract class cannot be instantiated and its methods are internally virtual.

Interfaces are always chosen over these abstract classes since interfaces provide multiple inheritance but once a class is inherited that class cannot inherit any other class.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand from custom control?

605


What are the new web part controls in asp.net 2.0 ?

524


What is application session?

501


How do we assign page-specific attributes?

611


How to send a DataReader as a parameter to a remote client ?

2713






How can I open ashx file in mobile?

616


What is viewstate information stored?

596


What is rending process in ASP.NET?

611


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

1942


How we can force all the validation controls to run?

525


Are cookies stored on server or client?

500


Describe session handling in a webfarm, how does it work and what are the limits?

576


What is inproc and outproc?

521


Can I tap into other windows livetm services?

562


What are the asp.net security controls?

546