.. This file is part of the OpenDSA eTextbook project. See .. http://opendsa.org for more details. .. Copyright (c) 2012-2020 by the OpenDSA Project Contributors, and .. distributed under an MIT open source license. .. avmetadata:: :author: Molly Domino Polymorphism ============ Objectives ---------- * Create and use objects in java * Review Java Interfaces and Abstract Classes * Review Inheritance and Composition * Review Overloading and Overriding * Review Reference Variables * Trace and program using inheritance * Trace and implement equals and toString methods * Trace coding examples of polymorphism * Design java classes using polymorphism * Apply Typecasting Interactive: Introduction to Object Oriented Programming [9:26] --------------------------------------------------------------- .. raw:: html

Video Slides Java OOP Objects.pdf Checkpoint 1 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/OOP1Checkpoint1Summ.html ka :long_name: Checkpoint 1 Interactive: Java UML Diagrams [6:15] ------------------------------------- .. raw:: html

Video Slides 7.3.2.1-JavaOOPUML.pdf
UML Diagram from the example in the video Programming Practice: Object Oriented Programming ------------------------------------------------- .. extrtoolembed:: 'Programming Practice: Object Oriented Programming' :workout_id: 1906 Interactive: Java Inheritance: this, super [11:15] -------------------------------------------------- .. admonition:: Follow Along, Practice and Explore Download to run and explore the java file (see below) from the video on your own in eclipse. You may download the standalone \*.java file for this example. To run the standalone \*.java file you will need to 1) create a new Eclipse project, then 2) create a package within the project called “example” (the package named at the top of the class MUST match the package the file is placed in within the Eclipse project), and finally 3) download and import the standalone \*.java file(s) to the created package. .. raw:: html Video Slides Java OOP Super This.pdf
CS2 Java OOP Example Eclipse Project .. raw:: html
Checkpoint 2 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/OOP1Checkpoint2Summ.html ka :long_name: Checkpoint 2 Interactive: Java Inheritance: equals(), toString() [14:33] ----------------------------------------------------------- .. raw:: html

Video Slides Java OOP Equals ToString .pdf Java OOP Checkpoint 3 --------------------- .. avembed:: Exercises/SWDesignAndDataStructs/OOP1Checkpoint3Summ.html ka :long_name: Checkpoint 3 Interactive: Polymorphism Measurable Interface [7:23] ----------------------------------------------------- .. admonition:: Try It Yourself Download to run and explore the java file (see below) from the video on your own in eclipse. You may download the standalone \*.java file for this example. To run the standalone \*.java file you will need to 1) create a new Eclipse project, then 2) create a package within the project called “example” (the package named at the top of the class MUST match the package the file is placed in within the Eclipse project), and finally 3) download and import the standalone \*.java file(s) to the created package. .. raw:: html
Video Slides JavaOOPPolyMeasurable.pdf .. raw:: html
Checkpoint 4 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/OOP2Checkpoint4Summ.html ka :long_name: Checkpoint 4 Programming Practice: Polymorphism 1 ------------------------------------ .. extrtoolembed:: 'Programming Practice: Polymorphism 1' :workout_id: 1907 Interactive: Polymorphism Computer Superclass [12:09] ----------------------------------------------------- .. raw:: html

Video Slides JavaOOPPolyComputer.pdf Checkpoint 5 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/OOP2Checkpoint5Summ.html ka :long_name: Checkpoint 5 Interactive: Polymorphism Integer Example [7:40] ------------------------------------------------ .. raw:: html

Video Slides JavaOOPPolyInteger.pdf Checkpoint 6 ------------ .. avembed:: Exercises/SWDesignAndDataStructs/OOP2Checkpoint6Summ.html ka :long_name: Checkpoint 6 Programming Practice: Polymorphism 2 ------------------------------------ .. extrtoolembed:: 'Programming Practice: Polymorphism 2' :workout_id: 1908