Recitation 11: Workshops (Object Oriented Programming) – Citlaly Weed – Young

This was a fun and relaxed workshop Tristan did a great job! Learning OOP was difficult and a little still is, but after this workshop, I got a better understanding of how the different parts work together. For example, classing and making the object then in the actual code you can give it a method (what I know understand as giving the object a purpose).  Anyways, we did a class for a person –>  class Person, and first did the float of the x-axis, y-axis, the head size, and the body hight because these qualities are the ones we wanted to vary when we added them to the actual code (by using ArrayList). Then apparently there is something called void introduced where in the Console each person we add says their name, which I found very cute. So we added three people that I named one Bruce (who has “normal” size head), Jose (who has a really big head), and Brit (who has a small head size). Then after we did people.get(1).display();  in void draw we could see our wonderful lollipop friends. Lastly, we identified the radius for each person’s head so that when we would click on the identified area they would disappear. The background was boring so I wanted to spice it up a bit so I added background(255*mouseX/width, 255*mouseY/height, 255);. I actually turned into a game to be able to click on each person’s head before they disappear up.

https://www.youtube.com/watch?v=k6skshqRYkU

Leave a Reply