Beispiel #1
0
        private void btnExercise02_Click(object sender, EventArgs e)
        {
            clsMyClass object1;
            clsMyClass object2;

            object1        = new clsMyClass();
            object2        = object1;
            object1.Height = 15;
            MessageBox.Show(object2.Height.ToString(), "The height is…");
        }
Beispiel #2
0
        private void btnExercise01_Click(object sender, EventArgs e)
        {
            clsMyClass Exercise01 = new clsMyClass();

            MessageBox.Show(Exercise01.DropsInABucket.ToString());
        }
Beispiel #3
0
        private void btnCreateObject_Click(object sender, EventArgs e)
        {
            clsMyClass objMyObject = new clsMyClass();

            MessageBox.Show(objMyObject.AddTwoNumbers(1, 2).ToString());
        }