Why I don´t need to use static in my constructor method?

前端 未结 0 619
天命终不由人
天命终不由人 2020-12-29 07:46

I´m creating a class in Java with a static method called addCustomer which returns an instance of this class for me, like so:

import java.util.ArrayList;

pub         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题