Add [object]
for properties where the type is not specified
#111
Labels
[object]
for properties where the type is not specified
#111
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: