What is the difference between polymorphism and abstraction?
Answer / Hariram
Polymorphism and abstraction are two fundamental concepts in object-oriented programming. Abstraction refers to hiding the implementation details of an object and showing only its functionality, while polymorphism allows objects to take on multiple forms and perform a single operation differently. In other words, abstraction deals with 'What' an object does, while polymorphism deals with 'How' an object does it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is objective c better than swift?
Can protocols have properties?
What is a process and thread?
What is a dispatch function?
What is a category extension?
What optional binding?
Is there function overloading in objective-c?
How do you write an objective?
How do I import a swift file into objective c?
What is instancetype?
What is toll-free bridging and when is it useful?
What is .m file in xcode?