lmarkov

Declare an object

Nov 20th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. using System;
  2.  
  3. class DeclareAnObject
  4. {
  5.     static void Main()
  6.     {
  7.         string hello = "Hello";
  8.         string world = "World";        
  9.  
  10.         object text= hello + " " + world + "!\n";
  11.  
  12.         Console.WriteLine((string)text);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment