concept static member in category powershell

appears as: static members, static member, static members
PowerShell in Depth, Second Edition

This is an excerpt from Manning's book PowerShell in Depth, Second Edition.

Classes can have two kinds of members. An instance member is one that can be accessed only from an instance of the class, and they’re the most common types of members. For example, to retrieve the name of a service, you have to have an actual instance of a service to work with. There are also class members, also called static members, which don’t need an instance of the class. For example, .NET’s Math class offers static methods for a number of math operations. You don’t have to create an instance of the class in order to use them; they’re just available to you all the time.

35.4. Accessing static members

The -Math class is one you’ll commonly see people working with when it comes to static members. Technically, its class name is System.Math, although PowerShell lets you get away with omitting System in class names, because that’s one of the default top-level namespaces that PowerShell loads, as you’ve just seen.