0
can someone pls help me with static non statci and access modifiers??
pls be eloborate
3 Answers
+ 3
Static means that you can use the attribute/method without needing to instantiate an object of the class first, or in other words, as Mythos said, it is tied to the class rather than an instance of it.
Access modifiers are: private (accessible only from within the class), protected (like private, except that derived classes have access too), public (accessible by everyone).
0
static means its tied to the class. non-static would refer to an instance.
within a class you have getters or setters. another name for these are accessors or mutators. they simply allow you to access or modify private variables within your class.
0
thanks