Beispiel #1
0
        //Objects Function
        static void Objects()
        {
            videoGame battlefield = new videoGame("Battlefield", "Code for Video Game here", "First-Person Shooter");

            battlefield.Play();
            //Adding info to properties
            battlefield.Awesomeness = 11;
            battlefield.Rating      = "M";
            //Modifying existing property value
            battlefield.Code = "New Video Game Code";
            battlefield.Play();
            End();
        }
Beispiel #2
0
 //Objects Function
 static void Objects()
 {
     videoGame battlefield = new videoGame("Battlefield", "Code for Video Game here", "First-Person Shooter");
     battlefield.Play();
     //Adding info to properties
     battlefield.Awesomeness = 11;
     battlefield.Rating = "M";
     //Modifying existing property value
     battlefield.Code = "New Video Game Code";
     battlefield.Play();
     End();
 }