- Assume Class Phone Has Following Private Properties A Model The Model Of Phone B Brand The Brand Of Phone C Year Ma 1 (38.96 KiB) Viewed 32 times
Assume class Phone has following private properties : a) Model-the model of phone b) Brand-the brand of phone c) Year-ma
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Assume class Phone has following private properties : a) Model-the model of phone b) Brand-the brand of phone c) Year-ma
Assume class Phone has following private properties : a) Model-the model of phone b) Brand-the brand of phone c) Year-manufactured year d) Price - price of the phone You are required to write constructors to implement constructor overloading as follow : - First constructor - accepts values as arguments and assigns them to the appropriate properties: phone model, phone brand, manufactured year and price. - Second constructor - accepts values as arguments and assigns them to the appropriate properties: phone model and phone brand. Assign value zero to property price.