Why is inheritance not desirable in swift?
Answer / Vipin Prabhakar Singh
Inheritance is not desirable in Swift because it can lead to tightly coupled classes, hidden subclass behavior, and violations of the Single Responsibility Principle. Instead, Swift encourages composition over inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is strong in swift?
What is the difference between swift and objective c?
How can you add table view?
What is nested function in swift?
What are the different floating point numbers in swift?
What is static in swift?
What are delegates swift 4?
What does appdelegate swift do?
What are the advantages of using swift?
How you define variables in swift language?
How can you write multiple line comment?
Is it worth learning swift 2019?