You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a OOP(object oriented programming) language, MCFPP have complete OOP grammar and function. Its grammar is really similar with Java/C#. So, if you have the basic knowledge, you can learn it very easily.
32
32
33
-
在MCFPP中,可以使用`class`关键字来声明一个类:
33
+
In MCFPP, you can use keyword `class` to define a class:
In it, `ClassName` is the name of the class. In MCFPP, the name of a class must start with an upper letter. The big parentheses followed that is the class body, including the member variable and member function, also the constructor and so on. Yes, the same as Java/C#.
43
43
44
-
## 类的实例化
44
+
## Instantiate of class
45
45
46
-
一般情况下,你可以使用`ClassName(参数列表)`来创建一个对象的实例。比如本篇开头的示例`Person`类可以用`Person p = Person("Alumopper",16)`来创建。在MCFPP中,你并不需要`new`关键字。它被省略掉了。
46
+
Often, you can use `ClassName(parameter list )` to create a instantiation of an object. Such as the example `Person` class in the start of this article, you can create by `Person p = Person("Alumopper",16)`. In MCFPP, you don’t need keyword `new`. It’s ignored.
0 commit comments