Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class emp
- {
- public string name;
- public string address;
- public void display()
- {
- Console.WriteLine("{0} is in city {1}", name, address);
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- emp obj = new emp();
- obj.name = "Akshay";
- obj.address = "new delhi";
- obj.display();
- Console.ReadLine();
- }
- }
Add Comment
Please, Sign In to add comment