|
@@ -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. Download the `objects-birds` folder from `Bitbucket` using a terminal, moving to the `Documents/eip` directory, and writing the command `git clone http://bitbucket.org/eip-uprrp/objects-birds`.
|
284
|
284
|
|
|
@@ -300,11 +300,11 @@ In this exercise you will familiarize yourself with the `Bird` class and with so
|
300
|
300
|
|
301
|
301
|
5. 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.
|
302
|
302
|
|
303
|
|
-###Exercise 2: Create objects of the `Bird` class with certain attributes
|
|
303
|
+### Exercise 2 - Create objects of the `Bird` class with certain attributes
|
304
|
304
|
|
305
|
305
|
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.
|
306
|
306
|
|
307
|
|
-**Instructions**
|
|
307
|
+#### Instructions:
|
308
|
308
|
|
309
|
309
|
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.
|
310
|
310
|
|
|
@@ -346,9 +346,9 @@ In this exercise you will create objects of the `Bird` class using the default c
|
346
|
346
|
|
347
|
347
|
---
|
348
|
348
|
|
349
|
|
-##Deliverables
|
|
349
|
+## Deliverables
|
350
|
350
|
|
351
|
|
-Use "Deliverables" in Moodle to hand in the `main.cpp` file that contains the function calls and changes you made to the program. Remember to use good programming techniques, include the name of the programmers involved, and document your program.
|
|
351
|
+Use "Deliverable" in Moodle to hand in the `main.cpp` file that contains the function calls and changes you made to the program. Remember to use good programming techniques, include the name of the programmers involved, and document your program.
|
352
|
352
|
|
353
|
353
|
---
|
354
|
354
|
|