How can we define a base class in swift?



How can we define a base class in swift?..

Answer / 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

More Apple iOS Swift Interview Questions

What is mutable and immutable in swift?

1 Answers  


What type of literals does swift language have?

1 Answers  


Does apple use swift internally?

1 Answers  


Why is swift important?

1 Answers  


Explain what Lazy stored properties is and when it is useful?

1 Answers  


What is dictionary in swift?

1 Answers  


What are lazy stored properties, and how are they useful?

1 Answers  


How will you connect ui?

1 Answers  


What is indexpath in swift?

1 Answers  


Who calls the main function of our app during the app launch cycle?

1 Answers  


How to declare an empty dictionary in swift?

1 Answers  


Explain how you define variables in Swift language?

1 Answers  


Categories