Thursday, November 1, 2012

Lecture (Oct. 30)

So today, we learned about constructors and what they do, which is pretty much that they initialize variables in an object. That's basically it. What was really fun about this particular lecture was the video for today and Pops' quote towards the end.
In the YouTube video of the day, we learned that if you want to enhance your computer's wireless range, wrap a cell phone in Ethernet cable and plug an end into your computer. You can make an aluminum foil "satellite dish" to enhance it further.

Wisdom from Pops:
The last thing you want is for someone to reach into your object and mess around with your privates! You're all objects, so I'm sure you can relate to that. If you want someone to mess around with your private parts, go ahead and make 'em public! And there /are/ reasons you'd want to be able to mess around with private parts...” - Pops, on why to make your variables private.

No comments:

Post a Comment