Maha

Maha

  • NA
  • 0
  • 326.2k

What is the difference between two

Jul 21 2012 10:28 AM
(1) GirlScout gs = new GirlScout("Rose", 2000, 20.50);

(2) GirlScout gs = new GirlScout();

 gs.setName("Rose");
 gs.setID(2000);
 gs.setDue(20.50);

Other than making different format in the GirlScout class, is there any difference in the above two ways in writing.



Answers (2)