Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- Iskola uczelnia = new Iskola();
- uczelnia.getNazwa();
- uczelnia.getPrzedmiot();
- }
- }
- class Iskola {
- string nazwa{get; set;}
- public string getNazwa() {
- Console.Write("Which school do you prefer?\t");
- nazwa = Console.ReadLine();
- return nazwa;
- }
- }
- class Przedmiot : Iskola {
- public void getPrzedmiot() {
- Console.WriteLine("Bazy Danych");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement