Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace lab3
- {
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
- class Student
- {
- }
- interface IUniwersytet
- {
- List<Student> list { get; set; }
- void dodajStudenta();
- void usunStudenta();
- }
- class Uniwersytet : AUniversytet, IUniwersytet
- {
- public List<Student> list { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
- public void dodajStudenta()
- {
- }
- public override void Nazwa()
- {
- }
- public void usunStudenta()
- {
- }
- }
- abstract class AUniversytet
- {
- void wyswietlanieDanychUniwerku()
- {
- }
- public abstract void Nazwa();//Ta klasa musi być zaimplementowana
- public void Wydział()//To nie jest obowiązkowe
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement