overloading

Polymorphism (Overloading)

Polymorphism { Overloading } means simply, same methods makes different jobs in different objects.Like how ?
Let’s say we are writing java code and we are using JCheckBox ,JTextField and JButton components.When we try to use setText method for all of them the response suppose to be same,but checkbox writes the text near to checkbox icon ,textfield writes to text into itself and button object writes to text on the button.It shows us the polymorphism because same method worked different for different object.This property called polymorphism or overloading.
› Continue reading

Tags: , , ,

Tuesday, May 19th, 2009 C & C++, Java, Programming, Uncategorized 1 Comment