Advertisement
TankorSmash

Untitled

Aug 3rd, 2012
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.25 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6.  
  7. namespace TammyFranklin
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             //Intro to the app
  14.             Console.Title = "Tamso";
  15.             Console.BackgroundColor = ConsoleColor.DarkGreen;
  16.             Console.ForegroundColor = ConsoleColor.Yellow;
  17.             Console.WriteLine("Welcome to the Tamigotchi Clone! This is the first step:\n\nWhat's it's name, Neo?");
  18.             Console.BackgroundColor = ConsoleColor.Black;
  19.             Console.ReadKey(true);
  20.             Console.WriteLine("\n\n\nYou are dead Neo. You have to Raise a Tamigotchi. Deal with it.");
  21.  
  22.          
  23.             Pet tami = new Pet();
  24.            
  25.             //Console.WriteLine(tami.ToString());
  26.             Pet bird = new Pet();
  27.  
  28.             //Wait for Key on exit
  29.             Console.ReadKey();
  30.         }
  31.     }
  32.  
  33.     class Pet
  34.     {
  35.         //pet details
  36.         private string name;
  37.  
  38.         public Pet()
  39.         {
  40.             Console.WriteLine("What is the pet's name?");
  41.             this.name = Console.ReadLine();
  42.             Console.WriteLine("This is the pets name {0} {1}", this.name, name);
  43.         }
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement