namespace CuriousTabConsoleApplication { class Baseclass { public void fun() { Console.WriteLine("Hi" + " "); } public void fun(int i) { Console.Write("Hello" + " "); } } class Derived: Baseclass { public void fun() { Console.Write("Bye" + " "); } } class MyProgram { static void Main(string[ ] args) { Derived d; d = new Derived(); d.fun(); d.fun(77); } } }
String s1 = "Five Star"; String s2 = "FIVE STAR"; int c; c = s1.CompareTo(s2); Console.WriteLine(c);
String s1, s2; s1 = "Hi"; s2 = "Hi";
String s1 = "Nagpur"; String s2; s2 = s1.Insert(6, "Mumbai"); Console.WriteLine(s2);
String s = "123"; int i; i = (int)s;
String s = "123"; int i; i = int.Parse(s);
String s = "123"; int i; i = Int32.Parse(s);
String s = "123"; int i; i = Convert.ToInt32(s);
String s = "123"; int i; i = CInt(s);
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.