concept PowerShell class in category powershell
appears as: PowerShell classes, PowerShell class

This is an excerpt from Manning's book Windows PowerShell in Action, Third Edition.
When we discuss PowerShell classes in chapter 19 you’ll see that the return statement is required for outputting from methods. This difference can trip people up, so be aware.
Because PowerShell classes are full .NET classes, it’s possible for PowerShell classes to extend existing, compiled .NET classes.
For C# users, even though PowerShell 5+ doesn’t support the getter/setter syntax from C#, data members in PowerShell classes are properties, not fields. At some point in the future, the getter/setter syntax will likely be added.