c# code exercises

C# Inheritance – programs for practice

Q) What is output of below C# code? Output: Car is running Explanation: In fact, this is name hiding feature in C# language. If base class and derived class have same method name and have not used virtual and override in base and derived class respectively then on creating object of derived class and assigning […]

Scroll to top