Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.03 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. namespace lab3
  5. {
  6.     class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.         }
  11.     }
  12.  
  13.    class Student
  14.     {
  15.  
  16.     }
  17.  
  18.     interface IUniwersytet
  19.     {
  20.         List<Student> list { get; set; }
  21.  
  22.         void dodajStudenta();
  23.         void usunStudenta();
  24.     }
  25.  
  26.     class Uniwersytet : AUniversytet, IUniwersytet
  27.     {
  28.         public List<Student> list { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
  29.  
  30.         public void dodajStudenta()
  31.         {
  32.            
  33.         }
  34.  
  35.         public override void Nazwa()
  36.         {
  37.  
  38.         }
  39.  
  40.         public void usunStudenta()
  41.         {
  42.            
  43.         }
  44.     }
  45.  
  46.     abstract class AUniversytet
  47.     {
  48.         void wyswietlanieDanychUniwerku()
  49.         {
  50.            
  51.         }
  52.  
  53.         public abstract void Nazwa();//Ta klasa musi być zaimplementowana
  54.  
  55.         public void Wydział()//To nie jest obowiązkowe
  56.         {
  57.  
  58.         }
  59.     }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement