Hi!
I am hoping someone can help me with some pointers as to how I should program the following.
If you look at the attachment, I have the following a button called New Product, a button called Delete product and a textbox.
The assignment is to create a class called product, which contains
variables for productname and price, when the object is created.
a variable for quantity with a std. value of 1 when the object is created.
a method for adding to the quantity.
through property procedures one should be able to read but not write to the values in the class.
- the program should create a dynamic array called shoppingbasket which contains goods(objects of class product)
when the program is started there should be at least to demo goods written to the text box with array cellnumber, name of product and price.
When the user presses btnAddProduct, this should be added to the array, and presendted in the textbox.
If someone could help me a little bit I would appreciate it very much, I know it's a lot to ask for, but I would really like some examples on how to connect an array to the class, and update the textbox in the form with new products added through the AddProduct button


