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 OOP
- {
- class Adres
- {
- public string Ulica
- {
- get;
- private set;
- }
- public string NumerDomu
- {
- get;
- private set;
- }
- public string NumerMieszkania
- {
- get;
- private set;
- }
- public string KodPocztowy
- {
- get;
- private set;
- }
- public string Miasto
- {
- get;
- private set;
- }
- public string Państwo
- {
- get;
- private set;
- }
- public string AdresWFormaciePocztowym
- {
- get
- {
- return "Ul. " + this.Ulica + ' ' + this.NumerDomu + '/' + this.NumerMieszkania + "\n" + this.KodPocztowy + ' ' + this.Miasto + '\n' + this.Państwo;
- }
- }
- public void UstawDane(string nowaUlica, string nowyNumerDomu, string nowyNumerMieszkania, string nowyKodPocztowy, string noweMiasto, string nowePaństwo)
- {
- this.Ulica = nowaUlica;
- this.NumerDomu = nowyNumerDomu;
- this.NumerMieszkania = nowyNumerMieszkania;
- this.KodPocztowy = nowyKodPocztowy;
- this.Miasto = noweMiasto;
- this.Państwo = nowePaństwo;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement