Skip to content

Assignment 6 - Design Pattern

Muhammad Alain requested to merge Assignment6_DesignPattern into main

Write a program in java that implements Singleton design pattern.

The program should only make One object and upon creating another object, it should return the same object. Also confirm this behaviour by printing the object. Another way to determine the same object is the "==" operator, it should return true if you have the same object in both references.

Merge request reports