March 2019
Intermediate to advanced
336 pages
9h 9m
English
The New method on the Order class assigns the properties from the priority, quantity, and product parameters for name and customerName. The method initializes the properties of the order as follows:
// New method initializes with Order with priority, quantity, product, customerNamefunc (order *Order) New(priority int, quantity int, product string, customerName string ){ order.priority = priority order.quantity = quantity order.product = product order.customerName = customerName }
Read now
Unlock full access