1/**
2 * Copyright(C) 2003
3 * All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4 *
5 * Permission to use, copy, modify, and distribute this
6 * software and its documentation for EDUCATIONAL purposes
7 * and without fee is hereby granted provided that this
8 * copyright notice appears in all copies.
9 *
10 * @date : September 1, 2003
11 * @author : Salih Yurttas
12 */
13
14
15using System;
16using System.Text;
17
18public class String02
19{
20
21 public static void Main(string[] args)
22 {
23 string a = "goldenapple";
24
25 string b = a;
26 string c = a;
27
28 Console.WriteLine("a = {0}", a);
29 Console.WriteLine();
30
31 a = a.Remove(0,6);
32
33 Console.WriteLine("a = {0}", a);
34 Console.WriteLine();
35
36 Console.WriteLine();
37
38 Console.WriteLine("b = {0}", b);
39 Console.WriteLine();
40
41 b = b.Remove(6);
42
43 Console.WriteLine("b = {0}", b);
44 Console.WriteLine();
45
46 Console.WriteLine();
47
48 Console.WriteLine("c = {0}", c);
49 Console.WriteLine();
50
51 c = c.Remove(6,5);
52
53 Console.WriteLine("c = {0}", c);
54 Console.WriteLine();
55 }
56
57}