Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
D16
//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 Overload { private string name = "Akhil"; public void Display() { Display2(ref name, ref name); System.Console.WriteLine(name); } private void Display2(ref string x, ref string y) { System.Console.WriteLine(name); x = "Akhil 1"; System.Console.WriteLine(name); y = "Akhil 2"; System.Console.WriteLine(name); name = "Akhil 3"; } } class Program { public static void Main(string[] args) { Overload overload = new Overload(); overload.Display(); //Console.ReadKey(); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Operator Overloading + Operator
Delegate & anonymous method
D11
Roman Numbers - Sorting
Explorer Diamond
Find median in a stream
encryption
Code
|= Caching
ConcurrentStack<T>
stackse - search stackoverflow differently
Please log in to post a comment.