Quote:
|
Originally Posted by Belisarius
All inheiritence is is when you extend a class and add some functionality. It's very straight forward - simply use the "extends" keyword when defining a class. It's covered under Learning the Java Language.
Polymorphism is a very simple concept that I can't remember the text-book definition of right now. Basically you start to use it naturally and don't think of it as ploymorphism. I have to run but when I get the chance I'll look up what it means and give you a few examples.
|
i did learn polymorphsm but i do not know how to apply it in interface(GUI) that i created.
for example, i create an interface (GUI) for user to enter his personal data, his D.O.B and address. my program allow many users to enter their data, how can i ensure that i can store the previous data and retrieve anyone's data?
thank you..