Below is the simple console application written in C# using System; public class Hello { public static void Main (string[] args) { Console.WriteLine(”Hello tutorialz.tk”); } } using System; “System” is a namespace and the “using” directive says that all classes in the “System” namespace can be used in this... (Continue reading)
Below program show a simple calculator with simple definitions……….. using System;public class Calculator { public int Add(int value1, int value2) { return value1 + value2; }public int Subtract(int value1, int value2) { return value1 - value2; } public int Multiply(int value1, int value2) { return value1 * value2; } public int Divide(int value1, int... (Continue reading)
C# VS Java C# and Java are both new-generation languages descended from a line including C and C++. Each includes advanced features, like garbage collection, which remove some of the low level maintenance tasks from the programmer. In a lot... (Continue reading)
Pointer Notation A pointer is a variable that holds the memory address of another type. In C#, pointers can only be declared to hold the memory addresses of value types (except in the case of arrays - see below). Pointers are declared... (Continue reading)
Overloading Means you have more then one funcitons with same name but with different signtures in the same class. string Add(string a, string b); int Add(int a, int b); Overriding overriding. The base class method is override by the derived class. class a { private int balu() { console.writeline(”nicei”); } } class b... (Continue reading)