Suppose we have two derived classes from a single class can we-04038
Suppose we have two derived classes from a single class, can we write a method with same name in both these derived classes? Choose the best option.
This multiple choice question (MCQ) is related to the book/course vu cs304 Object Oriented Programming. It can also be found in vu cs304 Final Term - Quiz No.6.
Suppose we have two derived classes from a single class, can we write a method with same name in both these derived classes? Choose the best option.
No
Only if the two classes have the same name
Only if the main program does not declare both kinds
Yes