a) Aggregation
b) Polymorphism
c) Inheritance
d) All of the mentioned
Answer: b
Explanation: In polymorphism instances of each subclass will be free to respond to messages by calling their own version of the method.
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