notAboAlmanalAnyMore's blog

By notAboAlmanalAnyMore, history, 9 years ago, In English

Hello everyone ... recently I learned C++ language and joined to competitive programming World , I Just want to know if OOP ( Object-Oriented programming ) is important for me !? , such as " Struct " && " Class " .. Thanks in advance =D

»
9 years ago, # |
  Vote: I like it +7 Vote: I do not like it

OOP is not really important for competitive programming. In most of my solutions I don't even define methods (except for main of course).

OOP is more useful in huge projects. It improves readability and usability. So you should definitely learn OOP, but it is not necessary for competitive programming sites like Codeforces.

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

OOP is not important at all in competitive programming.

Sometimes (like in Topcoder) you have to code the solution inside a class/struct, but otherwise you don't need OOP.

»
9 years ago, # |
  Vote: I like it +5 Vote: I do not like it

No. You might need to define your own custom structs on rare occasions but even that can be avoided.