Advertisement
le_lukasz

Untitled

Apr 3rd, 2020
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 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 piatek03042020
  8. {
  9.     class Pojazd
  10.     {
  11.         public int waga;
  12.         public int maxV;
  13.         public string marka;
  14.  
  15.         public Pojazd(int waga, int maxV, string marka)
  16.         {
  17.             this.waga = waga;
  18.             this.maxV = maxV;
  19.             this.marka = marka;
  20.         }
  21.  
  22.         public void WypiszDane()
  23.         {
  24.             Console.WriteLine("waga: {0}, maxV: {1}, marka: {2}", waga, maxV, marka);
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement