adspace


How can we define a base class in swift?

Answer Posted / Siddh Nath Jha

"To define a base class (or superclass) in Swift, you use the keyword 'class' followed by the name of the class and its properties and methods. The base class can then be inherited by other classes using the 'class' keyword again, but this time with the name of the subclass and the name of the superclass separated by a colon."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

897


Explain some biggest changes in usernotifications.

925


How can you define a base class in swift?

927