le_lukasz

Untitled

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