📜  java代码示例中的方法是什么

📅  最后修改于: 2022-03-11 14:52:05.934000             🧑  作者: Mango

代码示例1
Static methods: A static method is a method that can be called and executed without creating an object
Instance methods: These methods act upon the instance variables of a class
Factory methods: A factory method is a method that returns an object to the class to which it belong