Hi Gurus,
I have created a custom object using this method,
$object = New-Object Object | Add-Member NoteProperty MyField 5 -PassThru | Add-Member ScriptMethod xTimesMyField { param($x) $x * $this.MyField } -PassThru $object $object.xTimesMyField(10)
Now I want to create another object that inherits the properties and methods of this object. How do I do that ?