+/EE312

software design

git clone https://git.julia.blue/+/EE312

Joseph RyanProject 76241299

master
476 B23 linesraw
1#ifndef _Customer_h
2#define _Customer_h
3
4#include "String.h"
5
6/*
7 * Customer is still defined as a struct, i.e., all the elements are public
8 * That might not be the best design, but it's adequate for now. Note that I've
9 * added a pair of constructors.
10 */
11struct Customer {
12    String name;
13    int bottles;
14    int diapers;
15    int rattles;
16
17    Customer(String);
18    Customer(void) {
19        name = "__invalid__";
20    }
21};
22
23#endif /* _Customer_h */