Previously:    How to make a (true) copy of an object

  • Steps used to make a copy of an object:

        public static void main(String[] args) 
        {
            Circle circle1 = new Circle(4);
          
            // Make a COPY of circle1
            Circle circle2 = new Circle();   // (1) Create a new Circle obj
            circle2.radius = circle1.radius; // (2) Copy the properties over
        } 

Unfortunately... this only works when we access the member variable(s)...