Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace StringsandObjects
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- string w1 = "Hello";
- string w2 = "World";
- object obj = w1 + " " + w2;
- string str = (string)obj;
- Console.WriteLine(str);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement