Updating a shared theme instance

A document editor uses the object diagram below. Every Panel reads its font size directly from its linked Theme, with no cached copy. The named instances t1 and t2 represent distinct objects, although their displayed slot values are equal. Font sizes are measured in typographic points.


Panels p1 and p2 link to Theme t1 while panel p3 links to Theme t2, and both themes have fontSize 14.


For a second snapshot, only t1's fontSize changes from 14 to 18. All object identities and links remain unchanged. Complete these steps for constructing the revised snapshot, using the exact instance names and an integer font size.


First, locate the object shared by p1 and p2: . Next, retain the separate object referenced by p3: . Finally, read p2's font size through its unchanged link: points.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Object Diagrams Questions: