answersLogoWhite

0

Why use static?

User Avatar

Anonymous

14y ago
Updated: 8/18/2019

Static is a keyword which is used to call the methods or variables without creation of that class object.

It will directly calls the respective method and varialbles.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you use static in a sentence?

The man remained static when he saw the tiger in front of him.


How do you create static variables in PHP?

Use the "static" keyword to declare a static variable within a function like shown below. <?php function fun() { static $variable; static $another_variable = ''; } ?>


What can you use to stop static electricity from building up?

To prevent static electricity buildup, you can use anti-static products such as sprays, mats, or clothing. These products help to neutralize the electric charge and reduce the likelihood of static electricity discharge.


Instead of buying a static eliminator what can I use around the house to remove static?

The best way to handle static is to use a fabric softener or sheet. This method is good to remove static cling in clothing and is also great for removing static charge from carpeting and other materials that conduct static. Downy diluted with water will work fine. One option is to use a dryer sheet. You can rub it on hair, clothing, furniture and other things to remove the static cling from them.


How can I decrease static electricity?

To decrease static electricity, you can use a humidifier to increase moisture in the air, wear natural fibers like cotton or wool, use an anti-static spray on clothing or surfaces, and avoid wearing clothes or shoes that generate static.


How do you effectively eliminate static electricity?

To effectively eliminate static electricity, you can use anti-static products, such as sprays or mats, wear clothing made of natural fibers, use a humidifier to increase moisture in the air, and avoid materials that generate static electricity.


What is the difference between spark and static?

Static is the name of an electricity, a spark is like the outcome of friction. Like, you can use static electricity to make a spark.


Why you can not use this pointer in static functions?

Because this points to the current object, but static methods don't have a current object (actually this is definition of the static methods).


Why do you use the word static to describe static electricity?

Static means it doesn't move. This is essentially what static electricity is, a charge tht has no current. It is made by the transfer of electrons, as a pose to a cell or battery.


Why static functions cannot use instant variables?

Static functions are tied to a class, not to a particular object. A static function can only access static variables because it has no knowledge of member variables.


What do anti static mats and wrist straps use to prevent anti static charges from racing through devices?

They use a connection to ground so that the static charge goes to ground instead of through the device.


What is the Use of static function?

A static function is a member function that is not associated with any instance of the class; it has no this pointer.