project3 blockchain

Posted immiao0319

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了project3 blockchain相关的知识,希望对你有一定的参考价值。

【概念】

constructor在main方法外面,main调用constructor来形成object https://blog.csdn.net/caohaicheng/article/details/14147099

public class Platypus {
    String name;
 
    Platypus(String input) {
        name = input;
    }
 
    Platypus() {
        this("John/Mary Doe");
    }
 
    public static void main(String args[]) {
        Platypus p1 = new Platypus("digger");
        Platypus p2 = new Platypus();
        System.out.println(p1.name + "----" + p2.name);
    }
}
--------------------- 
作者:hai_cheng001 
来源:CSDN 
原文:https://blog.csdn.net/caohaicheng/article/details/14147099 
版权声明:本文为博主原创文章,转载请附上博文链接!

【方法论】

【细节】

以上是关于project3 blockchain的主要内容,如果未能解决你的问题,请参考以下文章