adspace
Answer Posted / Nishant Pratap Singh
"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 View All Answers