MCQs > IT & Programming > C# > How can you define a function in a derived class having the same name as a non-virtual function in the base class?

C# MCQs

How can you define a function in a derived class having the same name as a non-virtual function in the base class?



Answer

Correct Answer: You can do this simply by adding that function definition in the derived class. The function in the derived class will automatically hide the function in the parent class

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it