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 Rower:Pojazd
- {
- public string rodzajRoweru;
- public Rower(int waga, int maxV, string marka, string rodzajRoweru) : base(waga, maxV, marka)
- {
- this.rodzajRoweru = rodzajRoweru;
- }
- public void WypiszDane()
- {
- Console.WriteLine("waga: {0}, maxV: {1}, marka: {2} , rodzajRoweru: {3}", waga, maxV, marka, rodzajRoweru);
- }
- }
- }
Add Comment
Please, Sign In to add comment