Overriding and Overloading is for ?
-
Methods and variables
-
Class
-
Variables
-
Methods
D
Correct answer
Explanation
Overriding (runtime polymorphism through inheritance) and overloading (compile-time polymorphism with same name, different parameters) are concepts that apply specifically to methods in object-oriented programming. They are not applicable to variables or classes.