|
@@ -14,6 +14,7 @@ In OOP, each object encapsulates within itself certain properties about the enti
|
14
|
14
|
|
15
|
15
|
When an object class we need to use in our program has not been predefined in a library, we need to declare and implement our own class. To do this, we define *classes* that contain data with certain *properties* or *attributes* and actions that we want to carry out with this data through the use of *methods* or *member functions*. This way, we can organize the information and processes in *objects* that have the properties and methods of a class. In today's laboratory experience you will practice defining a class and implementing some of its methods by completing a program that simulates a basketball game between two players, maintaining the score for the game and the global statistics for the two players.
|
16
|
16
|
|
|
17
|
+
|
17
|
18
|
## Objectives:
|
18
|
19
|
|
19
|
20
|
1. Practice the implementation and declaration of classes in C++.
|
|
@@ -26,7 +27,7 @@ When an object class we need to use in our program has not been predefined in a
|
26
|
27
|
Before coming to the laboratory you should have:
|
27
|
28
|
|
28
|
29
|
|
29
|
|
-1. Reviewed the implementation and declaration of C++ classes.
|
|
30
|
+1. Reviewed the concepts related to classes and objects.
|
30
|
31
|
|
31
|
32
|
2. Studied the skeleton for the program in `main.cpp`.
|
32
|
33
|
|