Chapter4/4.9_Class/ConstructorOverload_bad.ps1
class Foo{ [string]$Name [int]$Id Foo(){ } Foo([string]$name){ $this.Name = $name } Foo([string]name, [int]$id) :this($name){ $this.Id = $id } } |
class Foo{ [string]$Name [int]$Id Foo(){ } Foo([string]$name){ $this.Name = $name } Foo([string]name, [int]$id) :this($name){ $this.Id = $id } } |