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

How do I use response redirect?

0 Answers  


Describe the difference between inline and code behind - which is best in?

0 Answers  


suppose i am Admin in my application and i have to terminate the session of the particular user in my application.........how can i do it....?????

1 Answers   L&T,


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

0 Answers   HCL,


What is the main difference between a static page and a dynamic page?

2 Answers  


Is data can be edited in the Repeater control?

2 Answers  


What is a transaction? a) A banking term. b) A concept used to describe a step in the business process. c) A combination of DML steps that must succeed or the data is retuned to its initial state. d) A combination of DDL steps that must succeed or the data is retuned to its initial state.

5 Answers   Syntax Softtech,


What is cross page posting in asp net?

0 Answers  


What are the different authentication modes in asp.net?

0 Answers  


Why web api is better than wcf?

0 Answers  


What is the difference between globalization and localization?

0 Answers  


You need to be able to retrieve data from DataSet object that has four DataTable objects. There are currently UniqueConstraint and ForeignKeyConstraint Object on the DataTable objects to enforce the data rules. You find that you can retrieve the data from the individual DataTable objects, but you are not able to retrieve the data from the combination of DataTable objects in a Parent/Child manner. What should you do to able to retrieve the data in a Parent/Child manner? a) Set the EnforceParentChild parameter of the DataSet to True. b) Set the EnforceRelation parameter of the Relations collection to True. c) Add DataRelation objects to the Relations Collection to make the DataSet present the data in Parent/Child manner. d) Add a primary key and a foreign key to each of the DataTable objects that should present the data in a Parent/Child manner.

1 Answers   Syntax Softtech,


Categories