You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, the $Prefix Property has no type specified. Theoratically, this means that the property can accept anything (basically, anything that is a descendant of type Object)
Class Computer {
$Prefix
[int]$Number
[String]$FullName
This is what it looks like:

The `[]` in front of the $Prefix property should not be empty like that, but filled with the word `Object`
The text was updated successfully, but these errors were encountered:
In this example, the
$Prefix
Property has no type specified. Theoratically, this means that the property can accept anything (basically, anything that is a descendant of typeObject
)Class Computer {
$Prefix
[int]$Number
[String]$FullName
}
Class Server : Computer {
$Prefix = 'SRV'
}
Class Laptop : Computer {
$Prefix = 'LPT'
}
The text was updated successfully, but these errors were encountered: