In programming language theory and type theory, polymorphism is the use of a single symbol to represent multiple different types. -- Luca Cardelli et. al.
In object-oriented programming, polymorphism is the provision of a single interface to entities of different types. -- Bjarne Stroustrup
So polymorphism is the ability (in programming) to present the same interface for differing underlying forms (data types).
polymorphism, meaning that an object of a given class can have multiple forms, either as its own class or as any class it extends. The new class is a subclass or extended class of the class it extends; the class that is extended is its superclass.
Polymorphism is the ability to have many different forms; for example, the Manager class has access to methods from Employee class. An object has only one form. A reference variable can refer to objects of different forms.
The property of an object to take on many different forms. To put this more precisely, a Java object may be accessed using:
A reference with the same type as the object A reference that is a superclass of the object A reference that defines an interface the object implements or inherits
Ulf Dittmer wrote:A response is generated once it's been determined how a request should be handled.
Ulf Dittmer wrote:So from that I find it more natural to attach attributes to requests, because the request will exist even when the response does not yet.
On a more practical level, I think it would be confusing to have attributes for both. By choosing one, it's clear where to look for attributes.
Maneesh Godbole wrote:'Have' is correct English. Why do you want to change it to 'has'
Under what circumstances do you expect to see it?