Private class-level variables - C#.NET

Can you inherit private class-level variables?

- Yes, they can be inherited but they are not accessible in the derived class, so it looks as if it is not inherited.
- Private class-level variables can be used within a class.
- It is inherited to the derived class but cannot access them on derived class.
System.Object - C#.NET
C#.NET - System.Object - System.Object: The object class is the ultimate base class of all classes in the .NET Framework...
Significance of the keyword virtual - C#.NET
C#.NET - What is the significance of the keyword virtual in the method definition? - The method with virtual keyword signifies that it can be over-ridden...
Allow class to be inherited and prevent method from being over-ridden - C#.NET
C#.NET - How can you allow class to be inherited and prevent the method from being over-ridden? - Declare the class as public and make the methods sealed...
Post your comment