Lec 18
Lec 18
Lec 18
Polymorphism
• 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.
Output:
Powers of two: 1 2 4 8 16
Powers of three: 1 3 9 27 81
Powers of two: 1 2 4 8 16