A)
->it is used not only doing one task . it can do more than one task is called extensibility.
->poly means many, so polymorphism means many forms.
->so with single message . we can call more than one task in the polymorphism.
->same entity behaving differently indifferent situations is called polymorphism.
->making method call is message passing.
->object is behaving means that method is under execution.
->message is same but context is different, for the same interface the object behave differently i.e. object polymorphism.
->here x is not polymorphism. The object is polymorphic based on the message.
->in procedure oriented 100 names doing 100 tasks but in object oriented 1 interface doing 100 tasks.
->message is nothing but a method call from the outside of the object , i.e. an interface between that object and that outside world.
Comments
Post a Comment