Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
Access Modifiers
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Person { private string name; public string Name { get { return this.name; } set { this.name = value; } } public void DisplayName() { Console.WriteLine("{0}", name); } } public class Program { public static void Main(string[] args) { Person person = new Person(); person.Name = "Brian"; person.DisplayName(); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Pets Name Generator
Symantic check for object type variables
Xml in C#
Some Fibonacci
get it
First code
b
internal access specifier
Generic Coveriant
Collections
Please log in to post a comment.