|
@@ -323,23 +323,23 @@ In this exercise you will create objects of the `Bird` class using the default c
|
323
|
323
|
|
324
|
324
|
4. Create another object of class Bird called `piolin` that has a blue face, green eyes and UNI eyebrows invoking the constructor `Bird(int size, EyeBrowType brow, QString faceColor, QString eyeColor, QWidget *parent = 0)`. Its size should be half of `abelardo`'s. Add it to the same window where `abelardo` is being displayed by using `w.addBird(300, 100, piolin)`, to obtain an image like the one in Figure 3
|
325
|
325
|
|
326
|
|
- ---
|
|
326
|
+ ---
|
327
|
327
|
|
328
|
|
- ![figure3.png](images/figure3.png)
|
|
328
|
+ ![figure3.png](images/figure3.png)
|
329
|
329
|
|
330
|
|
- **Figure 3.** Abelardo and Piolin.
|
|
330
|
+ **Figure 3.** Abelardo and Piolin.
|
331
|
331
|
|
332
|
|
- ---
|
|
332
|
+ ---
|
333
|
333
|
|
334
|
334
|
5. Create two other objects called `juana` and `alondra` that will appear drawn in the coordinates (100, 300) and (300,300) respectively. Create `juana` using the default constructor so that its properties are assigned randomly. Create `alondra` using the other constructor so that you may specify its properties during its creation. `alondra` should have the same size as `juana`, have the same type of eyebrows, and the same eye color. Its face should be white. Add `alondra` and `juana` to the window where `abelardo` and `piolin` are. The window should look similar to the one in Figure 4.
|
335
|
335
|
|
336
|
|
- ---
|
|
336
|
+ ---
|
337
|
337
|
|
338
|
|
- ![figure4.png](images/figure4.png)
|
|
338
|
+ ![figure4.png](images/figure4.png)
|
339
|
339
|
|
340
|
|
- **Figure 4.** Abelardo, Piolin, Juana, and Alondra.
|
|
340
|
+ **Figure 4.** Abelardo, Piolin, Juana, and Alondra.
|
341
|
341
|
|
342
|
|
- ---
|
|
342
|
+ ---
|
343
|
343
|
|
344
|
344
|
6. Run the program several times making sure that `alondra` and `juana` have the same size, eyebrows and eyes.
|
345
|
345
|
|