2
Reply

What is the difference between two

Ask a question
Maha

Maha

12y
912
1
(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)