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);
practicing class design
i'm just practicing class design. does this look right at all or am i going about this the wrong way.
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:
have i overkilled on the whole inheritance thing or is this good?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement