<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<div>See the comments. Why is one allowed but the other one isn't and what's the rationale for this?</div><div><br /></div><div><br /></div><div>class Vehicle {</div><div> let name: String</div><div> init(name: String) {</div><div> self.name = name</div><div> }</div><div>}</div><div><br /></div><div><br /></div><div>class Car: Vehicle {</div><div> //Why is this not allowed?</div><div> override init?(name: String) {</div><div> super.init(name: name)</div><div> }</div><div> </div><div> //But this is allowed?</div><div> init?(name: String, ignore: String) {</div><div> super.init(name: name)</div><div> }</div><div>}</div><div><br /></div><div><br /></div><div><br /></div> </body>
</html>