what is abstract class and method..

Answers were Sorted based on User's Feedback



what is abstract class and method....

Answer / asif aslam

Abstract class start with the keyword abstract,we can't
create direct instantiate of the abstract class,an abstract
class may contain the pure virtual,abstract function.

Is This Answer Correct ?    2 Yes 0 No

what is abstract class and method....

Answer / 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

More ASP.NET Interview Questions

What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

0 Answers  


What are the main components of the ADO object model? How are they used?

2 Answers   HCL, Syntax Softtech,


What's a bubbled event?

3 Answers   Siebel,


whats the purpose of AUTOPOSTBACK property for the controls in asp.net?

4 Answers  


How can we update records in gridview?Is there any appropriate code for it?

0 Answers  






Why do we use web config?

0 Answers  


Where session variables are stored?

0 Answers  


What is ispostback method in asp.net? Why do we use that?

0 Answers  


How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)

2 Answers  


Explain the main function of url routing system in asp.net mvc? : asp.net mvc

0 Answers  


i have a register form & in that form i have a 2 textboxes for entering name&age.my doubt is that how can i provide error message like "invalid entry" when user enter a invalid name/age(eg:user enter name as #%%%##daff,and age as 1000.)in that textboxes.I want code.

3 Answers  


What is meant by asp.net?

0 Answers  


Categories