📜  静态变量和实例变量之间的区别 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:13.307000             🧑  作者: 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.