📜  静态与实例 - 任何代码示例

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

代码示例1
Static vs Instance
Static Belong to Class and it has one copy
Static methods only accept static members

Instance Belongs to the object
You can have multiple copies of instance variables


for example webdriver should be static since
we need one copy of webdriver.