C++ Lecture 14
C++ Lecture 14
Lecture #14
Spring 2017
2
Employee Record ASTU
3
Practice Exercises 1 ASTU
4
Practice Exercises 1 ASTU
5
Continuing the Date Class ASTU
6
Continuing the Date Class ASTU
7
Continuing the Date Class ASTU
8
Continuing the Date Class ASTU
10
Elevator Class ASTU
• In this definition,
– the data member elNum is used to store the
elevator’s number,
– the data member currentFloor is used to store
the elevator’s current floor position, and the
data member highestFloor is used to store
the highest floor the elevator can reach.
• The constructor should allow initialization
of an object’s three data members with
the data passed to the constructor when
an Elevatorobject is instantiated.
11
Elevator Class ASTU
12
Elevator Class ASTU
13
Practice Exercises 2 ASTU
15