|
@@ -270,15 +270,15 @@ to generate random numbers in the range [min, max]. The method `randInt` depends
|
270
|
270
|
---
|
271
|
271
|
|
272
|
272
|
|
273
|
|
-## Laboratory session:
|
|
273
|
+## Laboratory Session:
|
274
|
274
|
|
275
|
275
|
In today's laboratory experience you will use the `Bird` class to practice the creation of objects, accessing and changing its attributes.
|
276
|
276
|
|
277
|
|
-### Exercise 1 - Study the `Bird` class
|
|
277
|
+### Exercise 1 - Study the `Bird` Class
|
278
|
278
|
|
279
|
279
|
In this exercise you will familiarize yourself with the `Bird` class and with some methods associated with the `MainWindow` class that defines the window where the results are displayed.
|
280
|
280
|
|
281
|
|
-#### Instructions:
|
|
281
|
+#### Instructions
|
282
|
282
|
|
283
|
283
|
1. Load the project `Birds` into `QtCreator`. There are two ways to do this:
|
284
|
284
|
|
|
@@ -301,11 +301,11 @@ In this exercise you will familiarize yourself with the `Bird` class and with so
|
301
|
301
|
|
302
|
302
|
4. Execute the program by clicking on the green arrow in the left menu on the Qt Creator window. The program should display a blank window.
|
303
|
303
|
|
304
|
|
-### Exercise 2 - Create objects of the `Bird` class with certain attributes
|
|
304
|
+### Exercise 2 - Create Objects of the `Bird` Class with Certain Attributes
|
305
|
305
|
|
306
|
306
|
In this exercise you will create objects of the `Bird` class using the default constructor and using constructors where you define specific characteristics for the object. You will also practice the use of getters and setters to obtain and assign attributes to the objects.
|
307
|
307
|
|
308
|
|
-#### Instructions:
|
|
308
|
+#### Instructions
|
309
|
309
|
|
310
|
310
|
1. Create an object of the `Bird` class called `abelardo` using the default constructor and add it to the `w` window using the method `addBird(int x, int y, Bird b)`. Remember that the method's call should start with the name of the object `w` and a period.
|
311
|
311
|
|