10. Consider the tree given in the figure below and answer the following questions. You are required to develop an ordering system by Bubble Tea Store. The class diagram of the system is depicted in...


javacodes


10. Consider the tree given in the figure below and answer the following questions. You are<br>required to develop an ordering system by Bubble Tea Store. The class diagram of the<br>system is depicted in Figure 10.<br>Bubble Tea<br>- teaName: String<br>teaPrice: double<br>- teaQuantity: int<br>+ Bubble Tea(teaName: String, teaQuantity: double)<br>+ Get methods<br>+ Set methods<br>+ calcTotal(): double<br>+ toString(): String<br>Figure 10<br>a) Based on the class diagram shown in Figure 10, write the class that contains:<br>i) All the data fields of the class.<br>i) A constructor with arguments.<br>i) The getters and setters for all the data fields.<br>

Extracted text: 10. Consider the tree given in the figure below and answer the following questions. You are required to develop an ordering system by Bubble Tea Store. The class diagram of the system is depicted in Figure 10. Bubble Tea - teaName: String teaPrice: double - teaQuantity: int + Bubble Tea(teaName: String, teaQuantity: double) + Get methods + Set methods + calcTotal(): double + toString(): String Figure 10 a) Based on the class diagram shown in Figure 10, write the class that contains: i) All the data fields of the class. i) A constructor with arguments. i) The getters and setters for all the data fields.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here