I created two classes and each class has the same print metho without using Inheritance or Interface. Is it called Polymorphism or not? Why?
Printable View
I created two classes and each class has the same print metho without using Inheritance or Interface. Is it called Polymorphism or not? Why?
See the other thread. The answer is no, but I'm not telling you why just because you're too lazy to open your text book and look up the definition of polymorphism.
I am not lazy. I read my text book about OOP many times, but I still don't understand clearly about Polymorphism and Interface, so I want my problems to be solved in the forum. I don't know why you said like that.
What do you know about polymorphism so far? Having read up about it, you must have learnt something. If not, maybe you should quit learning Java and become one of Santa's little helpers instead ;)