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