Harry_Hardcore
Gawd
- Joined
- Oct 11, 2001
- Messages
- 581
ive been leqrning java for a couple of weeks now (originally learnt c) i just have a query about classes. If im going to create a 'patient' class (info on patients of a medical practice) how do i go about making sub classifications in the class for things like name and address (like in c how you have sup structures).
qould i just make a superclass of 'Patient' with two sub classes which are just used from the superclass?
that seems obvious, just wondering if there was a better way to do it?
qould i just make a superclass of 'Patient' with two sub classes which are just used from the superclass?
that seems obvious, just wondering if there was a better way to do it?