PRF193_PE_SU25_521364_3993.webp
H

PRF193_PE_SU25_521364_3993.webp

☑Kizspy.me
OUTPUT:
1
tput for marking.
OUTPUT:
0
Question 4:
(2 marks)
The given Q4.cpp file contains statements about input and output data of objects from the Laptop class.
You should write the statements to complete the Laptop class as described below:
Laptop
Where:
4 of 4
Paper No: 1
-id: string
- model: string
- brand: string
- price: int
quantity: int
+ Laptop (id: string, model: string,
• Laptop(id:string, model:string, brand: String, price:
int, quantity: int) - parameterized constructor: set
the values to the id, model, brand, price and
quantity.
getTotalValue():int-return the value of total laptop
with formular: totalValue = price* quantity
Zoom
+ 100%
Activate Windows
Go to Settings to activate Windows.
Close
Chưa có bình luận nào.

Thông tin

Category
PRF193
Thêm bởi
hoangphuc76
Ngày thêm
Lượt xem
734
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom