Author: webcrab | Posted on: 6/19/2008 1:52:57 PM | Views : 362

altough i have written some of the following code, there are some things (most of them) i don't fully understand.
as u can see i've created the class product and i've assigned to it three variables. honestly i don't know why i need them. later on when i wrote: this._name = name; ( and so forth for the other variables).
i don't know who this is and how does it have the _variables i've created. and last, the set methods: what does _name = value; mean?
thanks to any1 that has the necessary altruism in him to help. 

 

    
 public

class product
{
private string _name;
private double _price;
private string _id;


public product( Go to the complete details ...