Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.19 KB | None | 0 0
  1.         public int Klasa
  2.         {
  3.             get
  4.             {
  5.                 return Klasa;
  6.             }
  7.             set
  8.             {
  9.                 if (value > 0)
  10.                 {
  11.                     Klasa = value;
  12.                 }
  13.                 else          
  14.                 {
  15.                     Console.WriteLine("Vlera duhet te jete me e madhe se 0");
  16.                 }
  17.             }
  18.         }
  19.  
  20.         public int Paralelja
  21.         {
  22.             get
  23.             {
  24.                 return Paralelja;
  25.             }
  26.             set
  27.             {
  28.                 if (value > 0)
  29.                 {
  30.                     Paralelja = value;
  31.                 }
  32.                 else
  33.                 {
  34.                     Console.WriteLine("Vlera duhet te jete me e madhe se 0");
  35.                 }
  36.             }
  37.         }
  38.         public List<Nxenesi> Nxenesit { get; set; } = new List<Nxenesi>();
  39.         public List<Lenda> LendeteDitarit { get; set; } = new List<Lenda>();
  40.  
  41.         public Ditari(int klasa,int paralelja,List<Lenda> lendet)
  42.         {
  43.             this.Klasa = klasa;
  44.             this.Paralelja = paralelja;
  45.             LendeteDitarit = lendet;
  46.         }
  47.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement