Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Block block = new Block("Grass");
- Console.WriteLine(block.Describe());
- Console.ReadLine();
- }
- }
- class Block
- {
- private string bType;
- public Block(string BlockType)
- {
- bType = BlockType;
- }
- public string Describe()
- {
- return "This block is made of " + bType;
- }
- public string Color
- {
- get { return bType; }
- set { bType = value; }
- }
- }
- }
Add Comment
Please, Sign In to add comment