Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ООП
- {
- class Program
- {
- static void Main(string[] args)
- {
- IMovable movable = new Car();
- }
- }
- interface IMovable
- {
- void Move();
- }
- class Car : IMovable
- {
- public void Move()
- {
- }
- }
- class Human : IMovable
- {
- public void Move()
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement