constructor
There can only be one public class per .java file and class name = file name
P62
P63
Constructor: a special method to initialize objects, must have have the same name as the class. By using constructors we can create objects with different parameters
This: the current self instance, mandatory if argument name is the same as the field name
posted on 2018-08-09 18:06 猪猪🐷 阅读(141) 评论(0) 收藏 举报
浙公网安备 33010602011771号