Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Student
- {
- private string Imie { get; set; }
- private string Nazwisko { get; set; }
- private int NrIndeksu { get; set; }
- private string Uczelnia { get; set; }
- public Student()
- {
- }
- public void Dodaj()
- {
- Console.WriteLine("Imie: ");
- string imie = Console.ReadLine();
- Console.WriteLine("Nazwisko: ");
- string nazwisko = Console.ReadLine();
- Console.WriteLine("Nr Indeksu: ");
- int nrIndeksu = Console.Read();
- Console.WriteLine("Uczelnia: ");
- string uczelnia = Console.ReadLine();
- Imie = imie;
- Nazwisko = nazwisko;
- NrIndeksu = nrIndeksu;
- Uczelnia = uczelnia;
- }
- public void Pokaz()
- {
- Console.WriteLine("Imię: " + Imie + " Nazwisko: " + Nazwisko);
- Console.WriteLine("Uczelnia: " + Uczelnia);
- Console.WriteLine("Nr Indeksu: " + NrIndeksu);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement