adspace
Explain the usage of class and benefits of inheritance.
Answer Posted / Vijay Chandra Mishra
"A class is a blueprint for creating objects in Swift. It defines a set of properties and methods that those objects can have. Inheritance allows a subclass to inherit the properties and methods of its superclass, helping to reduce redundancy and promote code reuse."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers