USE OF OOP IN CP!

Is there any use of concept of object oriented programming in CP.
Should i learn object oriented programming.
And also,
What are its uses ?

1 Like

I don’t think that you need to master OOPs for competitive programming. But it might help in setting templates in a organised way.

1 Like

You should definitly learn basics OOP for CP.
Although there is no need for topics like inheritence and polymorphism in CP as far as i know.
This would really help when you read editorials and solution - they often use OOP concepts.
Focus on these topics more

  1. Operator overloading (+, -, <, etc). link1, link2
  2. custom comparitors (for pairs, sets, maps, priority queues). link1, link2

Hope It hepls.
Cheers

1 Like

Ok, thanks

You should learn OOP as you will have a better understanding of programming language.
Even though you won’t need anything specific but it is better to learn as you must have a strong command in whatever language you use.
But don’t spend too much time on it.
Overloading is an important concept that you must learn.

1 Like