Follow

- Swift uses "init", while Kotlin uses "constructor"
- In Kotlin, a delegating constructor call must appear before the function body. This limits flexibility
- Kotlin does not have optional constructors! Skip throws a special exception type and modifies the call site to catch it
- In certain cases, Kotlin has serious convenience syntax. If we didn't need custom constructor logic, our entire Employee class could be defined as:

· · Web · 0 · 0 · 0