9
Answers

same or different

Maha

Maha

12y
1.3k
1
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)