How inheritance works in .net?
Answer / 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 |
Can you write a class without specifying namespace?
Can "this" be used within a static method?
Where?s Windows service database located?
What is garbage collection and how it works. Provide a code example of how you can enforce garbage collection in .net?
Explain .NET architecture?
Please explain what is the difference between encrypting a password and applying a hashing?
How ASP .NET different from ASP?
Garbage collector thread is what kind of a thread?
What is LINQ?
What are two different types of remote object creation mode in .net?
What are the different types of memory in .net?
What is Method Overriding? How to override a function in C#?