answersLogoWhite

0

Why use static?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

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

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why use static?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you use static electricity?

everything electronic is static electricity


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 = ''; } ?>


Does friction use static?

the charges does not move in a body the frictional electricity is called static eletricity


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.


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 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.


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.


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.


How do inkjet printers use static electricity?

no.


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.