Answer the question

Answer the question

by Md Assaduzzaman -
Number of replies: 12

1. What do you mean by polymorphism?

2. Write a real life example of polymorphism

In reply to Md Assaduzzaman

Re: Answer the question

by Rukya Islam -
1)In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form. Polymorphism is a feature of object-oriented programming languages that allows a specific routine to use variables of different types at different times
Polymorphism is the ability of a programming language to present the same interface for several different underlying data types
Polymorphism is the ability of different objects to respond in a unique way to the same message


2)Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.
In reply to Md Assaduzzaman

Re: Answer the question

by Mehedi Hasan -
1)In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form. Polymorphism is a feature of object-oriented programming languages that allows a specific routine to use variables of different types at different times
Polymorphism is the ability of a programming language to present the same interface for several different underlying data types
Polymorphism is the ability of different objects to respond in a unique way to the same message


2)Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.
In reply to Md Assaduzzaman

Re: Answer the question

by Jamirul Islam -
1)In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form. Polymorphism is a feature of object-oriented programming languages that allows a specific routine to use variables of different types at different times
Polymorphism is the ability of a programming language to present the same interface for several different underlying data types
Polymorphism is the ability of different objects to respond in a unique way to the same message


2)Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.
In reply to Md Assaduzzaman

Re: Answer the question

by Akash das -
1)In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form. Polymorphism is a feature of object-oriented programming languages that allows a specific routine to use variables of different types at different times
Polymorphism is the ability of a programming language to present the same interface for several different underlying data types
Polymorphism is the ability of different objects to respond in a unique way to the same message


2)Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.
In reply to Md Assaduzzaman

Re: Answer the question

by Mufty _ -
1)polymorphism refers to a programming language's ability to process objects differently depending on their data type or class.


2)Real life example of polymorphism:
Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.
In reply to Md Assaduzzaman

Re: Answer the question

by Mahmudur Rahman -
Answer to question number 1:
The word polymorphism means having many forms.
Answer to question number 2:
If you are in the classroom when you behave like a student, when you are in the market you behave like a customer, when you behave like a son or daughter in your home If you behave, then there is a person here who behaves differently.
In reply to Md Assaduzzaman

Re: Answer the question

by Shapla Rani -
1)In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form. Polymorphism is a feature of object-oriented programming languages that allows a specific routine to use variables of different types at different times
Polymorphism is the ability of a programming language to present the same interface for several different underlying data types
Polymorphism is the ability of different objects to respond in a unique way to the same message


2)Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.
In reply to Md Assaduzzaman

Re: Answer the question

by Md. Inzamamul Haque -
1. The word polymorphism means having many forms. In simple words, we can define polymorphism as the ability of a message to be displayed in more than one form.
2. A real life example of polymorphism: A person at the same time can have different characteristic. Like a man at the same time is a father, a husband, an employee.
In reply to Md Assaduzzaman

Re: Answer the question

by Saif Mahamud Niloy -
1. Polymorphism: Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.

2.Real life example of polymorphism:
Man is only one, but he takes multiple roles like - he is a dad to his child, he is an employee, a salesperson and many more. This is known as Polymorphism.
In reply to Md Assaduzzaman

Re: Answer the question

by Sadid Ahmed -
1.Ans: In object-oriented programming, polymorphism (from the Greek meaning "having multiple forms") is the characteristic of being able to assign a different meaning or usage to something in different contexts - specifically, to allow an entity such as a variable, a function, or an object to have more than one form. Polymorphism is a feature of object-oriented programming languages that allows a specific routine to use variables of different types at different times
Polymorphism is the ability of a programming language to present the same interface for several different underlying data types
Polymorphism is the ability of different objects to respond in a unique way to the same message.
2.Ans: Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.
In reply to Md Assaduzzaman

Re: Answer the question

by Sayeada Ummal Fatema -
1)Polymorphism means having many forms. Polymorphism is a feature of object-oriented programming languages that allows a specific routine to use variables of different types at different times.

2)Suppose if you are in a classroom that time you behave like a student, when you are in the market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.
In reply to Md Assaduzzaman

Re: Answer the question

by Kamruzzaman Kowshik -
1. Polymorphism: Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object.

2)Suppose if you are in class room that time you behave like a student, when you are in market at that time you behave like a customer, when you at your home at that time you behave like a son or daughter, Here one person present in different-different behaviors.