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 ConsoleApplication2
- {
- class List<T>
- {
- }
- class Stos<T> :IComparable
- {
- protected string zawartosc, opis;
- public virtual void Poloz(T t)
- {
- }
- public virtual void Zdejmij()
- {
- }
- public virtual void Podejrzyj()
- {
- }
- public virtual void ToString() //publiczne musza byc virtual voidy.
- {
- }
- }
- class StosParzysty<int> : Stos<int>
- {
- public StosParzysty()
- {
- }
- public override void Podejrzyj()
- {
- }
- public override void Poloz(int t)
- {
- }
- public override void Zdejmij()
- {
- }
- public override void ToString()
- {
- }
- }
- class StosNieparzysty<int> : Stos<int>
- {
- public StosNieparzysty()
- {
- }
- public override void Podejrzyj()
- {
- }
- public override void Poloz(int t)
- {
- }
- public override void Zdejmij()
- {
- }
- public override void ToString()
- {
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement