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.
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,
AJG
A. Jorge Garcia
Applied Math, Physics & CompSci
No comments:
Post a Comment