Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GSM
- {
- Display gsmDisplay = new Display();
- Battery gsmBattery = new Battery();
- private string model;
- private string manufacturer;
- private int price;
- private string owner;
- public string Model
- {
- get { return this.model; }
- set { this.model = value; }
- }
- public string Manufacturer
- {
- get { return this.manufacturer; }
- set { this.manufacturer = value; }
- }
- public int Price
- {
- get { return this.price; }
- set { this.price = value; }
- }
- public string Owner
- {
- get { return this.owner; }
- set { this.owner = value; }
- }
- }
- public class Display
- {
- private int size;
- private int colors;
- public int Size
- {
- get { return this.size; }
- set { this.size = value; }
- }
- public int Colors
- {
- get { return this.colors; }
- set { this.colors = value; }
- }
- }
- public class Battery
- {
- private string model;
- private int hoursIdle;
- private int hoursTalk;
- 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; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement