What is the difference between polymorphism and abstraction?



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

Post New Answer

More Objective-C Interview Questions

Is objective c better than swift?

1 Answers  


Can protocols have properties?

1 Answers  


What is a process and thread?

1 Answers  


What is a dispatch function?

1 Answers  


What is a category extension?

1 Answers  


What optional binding?

1 Answers  


Is there function overloading in objective-c?

1 Answers  


How do you write an objective?

1 Answers  


How do I import a swift file into objective c?

1 Answers  


What is instancetype?

1 Answers  


What is toll-free bridging and when is it useful?

1 Answers  


What is .m file in xcode?

1 Answers  


Categories