Tag: C# inheritance

Up-casting and Down-casting in C# Inheritance – Interview QA

Answer: Explanation of Up-casting and Down-casting in C# inheritance with program example C# Up-Casting Assignment of derived class object to a base class reference in C# inheritance is known as up-casting. As, Up-casting is implicit any explicit typecast is not required. For example, in below program in main() method assignment of derived class “Circle” object…

Read the full article