What is the concept of inheritance in .net?



What is the concept of inheritance in .net?..

Answer / Shailendra Sonker

"Inheritance is a mechanism in which one class acquires the properties and behaviors of another. In .NET, a derived class inherits from a base class by using the keyword ':`nExample: npublic class BaseClass {n// Properties and methods...n}npublic class DerivedClass : BaseClass {n// Override properties and methods or add new ones...n}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

what all type of application can u make with visual studio?

3 Answers   Manhattan,


What is the single responsibility principle?

1 Answers  


Explain Different kinds of methods?

1 Answers   Wipro,


Which dll translate xml to sql in internet information server (iis)?

1 Answers  


Describe the difference between inline and code behind which is best in a loosely coupled solution?

2 Answers  


What is the difference between task and thread in .net?

1 Answers  


Do you know what are three common acronyms used in .net, and what do they stand for?

1 Answers  


Tell us the differences between an interface and an abstract class in .net?

1 Answers  


Write code for fetch record nos 15 to 25 from a dataset containing 50 records?

4 Answers   C Squared Systems,


How can I get at the win32 api from a .net program?

1 Answers  


What is strong-typing versus weak-typing? Which is preferred?

1 Answers  


What data providers available in .net to connect to database?

1 Answers  


Categories