``` class Classname { } ``` ``` The `class` keyword means that you create a new `class`; the syntax is quite similar to the `function` syntax. And you can create new instances of this class using the following syntax: ``` ``` $obj1 = new Classname(); ``` ``` The `new` keyword means that you create a `new` object and ensures that your arguments are added as properties, so it initializes the*constructor* (which we are going to deal with later). We don't need to pass in any arguments, as we haven't added any properties (which can store different values depending on the instance) quite yet.
``` $obj1 = new Classname(); ``` ``` The `new` keyword means that you create a `new` object and ensures that your arguments are added as properties, so it initializes the*constructor* (which we are going to deal with later). We don't need to pass in any arguments, as we haven't added any properties (which can store different values depending on the instance) quite yet.
校長室 教務處學務處總務處輔導室家長會媒體報導 北小臉書北小附幼臉書課程計畫平台