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


Please Help Members By Posting Answers For Below Questions

How can you define a base class in swift?

931


Explain some biggest changes in usernotifications.

925


Explain the common execution states for a swift ios app (ios application lifecycle).

900