Learn Swift Fundamentals by preparing for Job Interview, Questions 76 ~ 78 For Advanced OOP

I have a lot more to say about today’s topic, but I’ve picked out the most important ones. Enjoy the questions!

76) What is Abstraction? How to achieve it?

Answer:

  • Abstraction is the process of hiding unnecessary functionality and exposing necessary functionality.
  • Abstraction can be achieved using Access Specifiers.

77) Does swift support multiple inheritances?

Answer:

  • No, Use protocols to achieve Multiple Inheritance.

78) How to call a method with some delay?

Answer:

  • self.perform(#selector(methodName), with nil, afterDelay: 5.0)
  • DispatchQueue
Call Function after delay
Call Function after delay

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
KD Knowledge Diet

Software Engineer, Mobile Developer living in Seoul. I hate people using difficult words. Why not using simple words? Keep It Simple Stupid!