Computer Science, asked by aarathilakshmipathy, 2 days ago

Smith behaves differently depending on
the situations. At school he is a
student, at home he is a son, in
school bus he is a passenger and at
super market he is a customer. What
00 concept does Smith exhibit?
Select one
Encapsulation
Hierarchy
Modularity
Polymorphism​

Answers

Answered by nidaeamann
11

Explanation:

Among the various options given in question statement, the correct option that corresponds to the various situations given is the last one i.e Polymorphism

It is the process of representing one form in multiple forms. Now Smith is one guy who has to perform several functions under several scenarios. Such an exhibition of behaviours come under polymorphism

Answered by Anonymous
8

Smith is exhibiting Polymorphism​.

  • The concept is the object's capacity to take on several types. Here different elements can be considered with the same interface.
  • Since he behaves differently as per situations, such as a student in school, son at home, a passenger in bus and customer at market, he is exhibiting various personality types.
  • The interface in this case is Smith. Thus, the concept is of polymorphism​.
Similar questions