• Advertisement
Sign in to follow this  

practicing class design

This topic is 4502 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i'm just practicing class design. does this look right at all or am i going about this the wrong way. UML Diagram i'm trying to make a small program to manage customers and jobs. basically the file classes load/save to/from a data object from/to "file". for example:

CustomerFile customers;
Customer     newCustomer;

customers.file = "c:\\customers.dat";
newCustomer.name = "Michael";

// this would go through customers.dat looking for the next unique
// ID and assign it to the ID variable in newCustomer then go and
// save data in customers.dat
customers.saveData(newCustomer);



have i overkilled on the whole inheritance thing or is this good?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement