+ 3

what are the main functions of a polymorphism

polymorphism

6th Jul 2017, 11:44 PM
Ahmed Bensalem Bélarouci
Ahmed Bensalem Bélarouci - avatar
2 odpowiedzi
+ 8
You can use a common semantics to express your methods Example: circle.draw() rectangle.draw() The method draw() is polymorfic, because can be applied to objects of different class
7th Jul 2017, 12:05 AM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
+ 2
thanks for this precious information
7th Jul 2017, 12:07 AM
Ahmed Bensalem Bélarouci
Ahmed Bensalem Bélarouci - avatar