practicing class design

Started by
-1 comments, last by shermy101 18 years, 6 months ago
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?

This topic is closed to new replies.

Advertisement