package classes
Type Members
- class Customer extends AnyRef
Class
Customer
represents customers (of an imaginary, way simplified online store).Class
Customer
represents customers (of an imaginary, way simplified online store). Each customer has attributes such as name and contact information. A customer object is immutable; to represent changed customer info, a new object is created. - class Employee extends AnyRef
The class
Employee
represents employees (in an imaginary accounting app).The class
Employee
represents employees (in an imaginary accounting app). Each employee has a number of attributes such as name and monthly salary. Most of these attributes are mutable. - class Order extends AnyRef
Class
Order
represents orders of zero or more products (in an imaginary and way simplified online store).Class
Order
represents orders of zero or more products (in an imaginary and way simplified online store). This simple implementation does not record every individual instance of a product added to the order, only the total price of the added products.