3 Objects and Classes

Definition of classes: fields, methods, and constructors

PL/Object-Oriented Programming

Object-oriented design: o Decomposition into objects carrying state and having behavior o Class-hierarchy design for modeling

Learning Outcomes

  1. Use SceneBuilder to create a FXML file for the user interface of a JavaFX program

  2. Use a controller for Java code

  3. Make an address book JavaFX application using a table view and FXCollections

  4. Write code for a class

  5. Use IntelliJ class diagrams

  6. Use GitHub Issues and Project

  7. Perform basic SQL statements


Exam Topics

  • Define and use fields and methods, including instance, static and overloaded methods

  • Initialize objects and their members using instance and static initialiser statements and constructors

  • Understand variable scopes, apply encapsulation and make objects immutable

Oracle Academy

  • All Oracle Academy work will be in the Java Programming course for the rest of the semester

  • 1-1 Fundamentals of Java continued

  • Section 1 Quiz

Textbook

  • 3 Introduction to Classes, Objects, Methods and Strings

Tutorial / Practice Activity

  • Getting Started with JavaFX

    • 4 Using FXML to Create a User Interface

      • In IntelliJ, all JavaFX projects are FXML applications.

      • Use the line public class FXMLExample extends Application

      • Add public static void main(String[] args) {launch(args);}

  • Mastering FXML Tutorial 1

  • Mastering FXML Tutorial 4

Lesson Plan