Maha

Maha

  • NA
  • 0
  • 324.9k

same or different

Dec 26 2011 1:00 PM
In the following HousePlant object's public method having three HousePlant's prameters
HousePlant x = new HousePlant();
x.SetName("Philodendron");
x.SetPrice(29.99);
x.SetValue(true);

In the following HousePlant constructor having three HousePlant parameters
HousePlant x = new HousePlant("Philodendron", 29.99, true);

I wish to know both are same or different.


Answers (9)