Classes and Objects

?

Classes and Objects

Specification

Be familiar with the concepts of:

  • class
  • object
  • instantiation

Students should know that:

  • a class defines methods and property/attribute fields that capture the common behaviours and characteristics of objects.
  • objects based on a class are created using a constructor, implicit or explicit, and a reference to the object assigned to a reference variable of the class type.
  • in the Unified Modelling Language (UML) composition is represented by a black diamond line and aggregation by a white diamond line.

Objects

Rather than storing data with constants and variables like procedural programs, object-oriented programs use objects as containers of both data and instructions.

New objects are created from classes. The process of creating an object is called instantiation. It is

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Programming Paradigms resources »