Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace AvetisGhukasyanNotes
- {
- class MainClass
- {
- static void Main(string[] args)
- {
- Plate plate = new Plate();
- plate.Color = "White";
- ChangeColor(plate);
- Console.WriteLine(plate.Color);
- }
- static void ChangeColor(Plate plateChangeTo)
- {
- plateChangeTo.Color = "Blue";
- }
- }
- class Plate
- {
- public string Color { get; set; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement