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 Demo
- {
- interface IStudent
- {
- void SayHi();
- void SayBye();
- }
- interface ICode
- {
- void SayHi();
- void MakeGame();
- }
- interface IArt
- {
- void SayHi();
- void Draw();
- }
- public abstract class Unity
- {
- public abstract void Play();
- public abstract void Pause();
- int time;
- }
- public class A:IStudent,ICode,IArt
- {
- void IStudent.SayHi()
- { }
- public void SayBye()
- { }
- void ICode.SayHi()
- { }
- public void MakeGame()
- { }
- void IArt.SayHi()
- { }
- public void Draw()
- { }
- }
- public class B:Unity
- {
- public override void Play()
- { }
- public sealed override void Pause()
- { }
- public virtual void Stop()
- {
- Console.WriteLine("Stop");
- }
- }
- public class C:B
- {
- public override void Stop()
- {
- Console.WriteLine("Please Stop!!!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement