Answers for "static vs instance"

0

static vs instance

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.
Posted by: Guest on January-05-2021

Browse Popular Code Answers by Language