Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Trener
- {
- string Ime;
- string Prezime;
- int _G_R;
- public Trener(string ime, string prezime, int GR)
- {
- this.Ime = ime;
- this.Prezime = prezime;
- this._G_R = GR;
- }
- public string ime
- {
- set
- {
- if (value == null || value == string.Empty) throw new Exception("No name provided");
- else this.Ime = value;
- }
- get
- {
- return this.Ime;
- }
- }
- public int GR
- { set; get; }
- public string prezime
- {
- set
- {
- if (value == null || value == string.Empty) throw new Exception("No lastname provided");
- else this.Prezime = value;
- }
- get
- {
- return this.Prezime;
- }
- }
- public int GodineIskustva
- {
- set
- {
- value++;
- }
- get
- {
- return GodineIskustva;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement