Singleton1
Singleton1
instances/objects using the
Singleton1.instance()
method
Set the Singleton1.data
value of the first instance and print information
concerning both objects to the screen
Check - on the screen output - that the references and values for both
objects are the same
Singleton2
Singleton2
instances/objects using the
Singleton2.uniqueinstance
attribute
Set the Singleton2.data
value of the first instance and print information
concerning both objects to the screen
Check - on the screen output - that the references and values for both
objects are the same
Singleton3
Singleton3
instances/objects using the
Singleton3.instance()
method
Set the Singleton3.data
value of the first instance and print information
concerning both objects to the screen
Check - on the screen output - that the references and values for both
objects are the same
Singleton4
Singleton4
instances/objects using the
Singleton4.getInstance()
method
Set the Singleton4.data
value of the first instance and print information
concerning both objects to the screen
Check - on the screen output - that the references and values for both
objects are the same