a) More than one method with same name, same signature, same number of parameters but different type
b) More than one method with same name but different method signature and different number or type of parameters
c) More than one method with same name, same signature but different number of signature
d) More than one method with same name, same number of parameters and type but different signature
Answer: d
Explanation: Overloading occurs when more than one method with same name but different constructor and also when same signature but different number of parameters and/or parameter type.
Related Posts
What will be the output of the following Python code snippet?
print(‘Hello World’.istitle())What will be the output of the following Python code snippet?
print(‘HelloWorld’.istitle())What will be the output of the following Python code snippet?
print(‘\t’.isspace())What will be the output of the following Python code snippet?
print(”””.isspace())What will be the output of the following Python code snippet?
print(‘1@ a’.isprintable())What will be the output of the following Python code snippet?
print(‘1.1’.isnumeric())What will be the output of the following Python code snippet?
print(’11’.isnumeric())
Join The Discussion