using System;
using System.Text;
class value {
static void Main(string[] args) {
String s1 = "Hello i like .net";
StringBuilder s2 = new StringBuilder(s1);
Console.WriteLine(s1.Equals(s2));
Console.ReadLine();
}
}
class access {
public int r1;
private int r2;
public void cal(int a, int b) {
r1 = a + 1;
r2 = b;
}
public void print() {
Console.WriteLine(" " + r2);
}
}
class Program {
static void Main(string[] args) {
access obj = new access();
obj.cal(2, 3);
Console.WriteLine(obj.r1);
obj.print();
Console.ReadLine();
}
}
class myClass {
public int x;
private int y;
public void cal(int x1, int x2) {
x = x1 + 1;
y = x2;
}
public void print() {
Console.WriteLine(" " + y);
}
}
class Program {
static void Main(string[] args) {
myClass obj = new myClass();
obj.cal(2, 3);
Console.WriteLine(obj.x);
obj.print();
Console.ReadLine();
}
}
public class Generic {
Stack s = new Stack();
public void push(S obj) {
s.Push(obj);
}
public S pop() {
S obj = s.Pop();
return obj;
}
}
class Program {
static void Main(string[] args) {
Generic k = new Generic();
k.push("Csharp");
Console.WriteLine(k.pop());
Console.ReadLine();
}
}