Tuesday, October 31, 2017

Computer Science 2017-2018: Object Based vs. Object Oriented (October)

Computer Science 2017-2018:
Object Based vs. Object Oriented 
(October)

LABS 2&3 ScreenCasts



LAB02 was all about using pre-defined classes from the Java Library based in the Java API on the Oracle site (used to be java.sun.com). We constructed, accessed and mutated several object types such as Rectangle, Color and String. Don't forget: the String class is immutable! I call this Object Based Programming.

LAB03 was all about writing our own classes from scratched derived from existing Java classes. This is the beginning of OOP: Object Oriented Programming. For example, we Abstracted the Car class and Encapsulated it's Private Instance Fields (engineEfficiency in mpg, gasInTank in gallons). We defined a Car() constructor, a getGas() accessor and a letsDrive() mutator.
1st YouTube Wednesday: Tom Lehrer



October YouTube Wednesdays



Well, that's all folks!
Teaching with Technology, 

No comments:

Post a Comment