Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //model, hours idle and hours talk
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace GSM
- {
- internal class Battery
- {
- private string model = null;
- private int hoursIdle = 0;
- private int hoursTalk = 0;
- public Battery(string batteryModel, int hoursIdle, int hoursTalk)
- {
- this.model = batteryModel;
- this.hoursIdle = hoursIdle;
- this.hoursTalk = hoursTalk;
- }
- public Battery()
- {
- }
- public string Model
- {
- get { return this.model; }
- set { this.model = value; }
- }
- public int HoursIdle
- {
- get { return this.hoursIdle; }
- set { this.hoursIdle = value; }
- }
- public int HoursTalk
- {
- get { return this.hoursTalk; }
- set { this.hoursTalk = value; }
- }
- public int AddHoursIdle()
- {
- return this.hoursIdle++;
- }
- public int AddHoursTalk()
- {
- return this.hoursTalk++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement