Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace piatek03042020
- {
- class Pojazd
- {
- public int waga;
- public int maxV;
- public string marka;
- public Pojazd(int waga, int maxV, string marka)
- {
- this.waga = waga;
- this.maxV = maxV;
- this.marka = marka;
- }
- public void WypiszDane()
- {
- Console.WriteLine("waga: {0}, maxV: {1}, marka: {2}", waga, maxV, marka);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement