Question: In c# Create the boba tea class: a . BobaTea has the following features i . A non - static string called name ii .
In c# Create the boba tea class:
a BobaTea has the following features
i A nonstatic string called name
ii A nonstatic double called price
iii. A two parameter consturctor with a string and double parameter. The constructor sets name to the string and price to the double parameter
b In the main, create BobaTea objects with the following values for nameprice:
i "Milk Tea",
ii "Thai Tea",
iii. "Earl Grey",
c Add the objects into a BobaTea array called "order"
d Display the sum of all prices of the BobaTea objects in order
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
