Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.80 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 Proizvoljan_niz__MAX_Value
  8. {
  9.     public class Person
  10.  
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             var milanovAuto = new Auto()
  15.             {
  16.                 marka = "Fiat",
  17.                 model = "Punto",
  18.                 godiste = 2008,
  19.                 gorivo = "dizel"
  20.             };
  21.  
  22.             var dusanovAuto = new Auto()
  23.             {
  24.                 marka = "fiat",
  25.                 model = "Croma",
  26.                 godiste = 2006,
  27.                 gorivo = "benzin"
  28.             };
  29.         }
  30.     }
  31.     public class Auto
  32.     {
  33.         string marka;
  34.         string model;
  35.         int godiste;
  36.         string gorivo;
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement