Unit 3: Classes

Learning Objectives

3.1

  • Designate access and visibility constraints to classes, data, constructors, and methods.
  • Designate private visibility of instance variables to encapsulate the attributes of an object.
  • Define instance variables for the attributes to be initialized through the constructors of a class.
  • Describe the functionality and use of program code through comments.
  • Define behaviors of an object through non-void methods without parameters written in a class.
  • Define behaviors of an object through void methods with or without parameters written in a class.
  • Define behaviors of an object through non-void methods with parameters written in a class.
  • Define behaviors of a class through static methods.
  • Explain where variables can be used in the program code.
  • Evaluate object reference expressions that use the keyword this.

3.2

  • Create an inheritance relationship from a subclass to the superclass.
  • Define reference variables of a superclass to be assigned to an object of a subclass in the same hierarchy.
  • Call methods in an inheritance relationship.
  • Call Object class methods through inheritance.