Computer Science, asked by lohithagowda2444, 1 year ago

When methods in the superclass and subclass have same name and signature, what are they called ?(a) Overloaded methods
(b) Overridden methods(c) Inherited methods
(d) All of the above

Answers

Answered by Anonymous
2
Hello here is your answer by Sujeet

Q:-When methods in the superclass and subclass have same name and signature, what are they called ?(a) Overloaded methods
(b) Overridden methods(c) Inherited methods
(d) All of the above

ANS:-Overloaded methods
Answered by gratefuljarette
4

Answer:  

When methods in the superclass and subclass have the same name and signature is called Overridden methods.

Option (b)

Explanation:

Superclass is the base class or we can say the parent class from which children or subclasses can inherit any functions. The subclass is known as the children's classes that inherit any function or methods from the base or parent or the superclass.

Overriding is a method where a subclass can inherit any method which has the same class name with the same signature and same returns type. In this case, it depends upon the object which method we want to call.

Similar questions