Skip to content

Scandiking/Liang-Chapter-9

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

University of South-Eastern Norway

Information Technology and Information Systems

Object-oriented programming 2 (OBJ2000)

This is a repo consisting of the programs as featured in the course book Introduction to Java Programming and Data Structures by Y. Daniel Liang. As per usual the "during-chapter" programs will be found with descriptive file names and the "after-chapter" programming exercises, referred to as "section" in the course book will be featured in the list beneath the Objectives-list with descriptive names and hyperlinks to its respective GitHub URL instead.


Objectives

  • To describe objects and classes, and use classes to model objects
  • To use UML graphical notation to describe classes and objects
  • To demonstrate how to define classes and create objects
  • To create objects using constructors
  • To define a reference variable using a reference type and access objects via object reference variables
  • To access an object's data and methods using the object member access operator (.)
  • To define data fields of reference types and assign default values for an object's data fields
  • To distinguish between object reference variables and primitive-data-type variables
  • To use the Java librery classes Date, Random, and Pont2D
  • To distinguish between instance and static variables and methods
  • To define private data fields wit appropriate getter and setter methods
  • To encapsulate data fields to make classes easy to maintain
  • To develop methods with object arguments and differentiate between primitive-type arguments and object-type arguments
  • To store and process objects in arrays
  • To create immutable objects from immutable classes to protect the contents of the objects
  • To determine the scope of variables in the context of a class
  • To use the keyword this to refer to the calling object itself Liang, 2020, p. 3451

Section classes

The section classes are programming exercises. These come after each chapter instead of during the chapters as the listing classes does. * and ** denotes heightened difficulty according to the course book editors.

Section (programming exercises.)

(To come..)


Comprehensive

Additional tasks...
  • There are no `Comprehensive` tasks in Chapter 9. 📖

Listing

Footnotes

  1. Liang, Y. D. (2020). Introduction to Java Programming and Data Structures (12th ed.). Pearson Education.

About

Objects and classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages