Packages

c

o1.classes

Customer

class Customer extends AnyRef

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.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Customer
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Customer(name: String, customerNumber: Int, email: String, address: String)

    name

    the full name of the customer

    customerNumber

    a number that uniquely identifies the customer (a positive integer)

    email

    the email address of the customer

    address

    the street address of the customer

Value Members

  1. val address: String
  2. val customerNumber: Int
  3. val email: String
  4. val name: String
  5. def toString: String

    Returns a textual description of the customer's key info.

    Returns a textual description of the customer's key info.

    Definition Classes
    Customer → AnyRef → Any