Advertisement
domantas123456789

Untitled

Oct 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.08 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace RestoranoMeniu
  8. {
  9.     class Patiekalas
  10.     {
  11.         private int ID;
  12.         private string pavadinimas;
  13.         private double kaina;
  14.         private string papildomaInfo;
  15.         private string foto;
  16.  
  17.         public Patiekalas(int ID, string pavadinimas, double kaina, string papildomaInfo, string foto)
  18.         {
  19.             this.ID = ID;
  20.             this.pavadinimas = pavadinimas;
  21.             this.kaina = kaina;
  22.             this.papildomaInfo = papildomaInfo;
  23.             this.foto = foto;
  24.         }
  25.  
  26.         public int GetID()
  27.         {
  28.             return ID;
  29.         }
  30.  
  31.         public string GetPavadinimas()
  32.         {
  33.             return pavadinimas;
  34.         }
  35.  
  36.         public double GetKaina()
  37.         {
  38.             return kaina;
  39.         }
  40.  
  41.         public string GetInfo()
  42.         {
  43.             return papildomaInfo;
  44.         }
  45.  
  46.         public string GetFoto()
  47.         {
  48.             return foto;
  49.         }
  50.  
  51.  
  52.     }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement