Exemplo n.º 1
0
    static void Main()  //entry point. // compiler starts here.
    {
        VerySimple ver; // notice that ver is null

        // ver the variable is a null object with nothing to it.
        // execute the line below.
        ver = new VerySimple(); //instantiation (give me an object of type VerySimple) creating a blue print of what you want to use.
        // after this line, complier goes to :public VerySimple() the constructor. And initialize the fields.
        // This Simple Value 0 int type.
        // initialize the field to 10.
        // must use the keyword "new". and calls on the constructor VerySimple()
    }
Exemplo n.º 2
0
    static void Main()
    {
        VerySimple ver;         //notice that ver is null

        ver = new VerySimple(); //instantiation (give me an object of type VerySimple
    }
Exemplo n.º 3
0
 public void ReturnsSomething()
 {
     var vso = new VerySimple();
     Assert.NotEmpty(vso.VerySimpleMethod("hi there"));
 }
 public static void Main()
 {
     VerySimple vs = new VerySimple();
 }