shubhamkumar68's blog

By shubhamkumar68, history, 4 years ago, In English

Should i study object oriented programming and is it used in CP ? Where ? Also, what are its uses ?

  • Vote: I like it
  • +8
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
  Vote: I like it +1 Vote: I do not like it

OOP isn't used that much in CP, so you can get away with only knowing the very basics. However, if you want to do real-world programming then OOP is pretty important.

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

You can use a strict to store data such as nodes in a graph or edges or any other objects. This is better than using pair or tuple because you get to name the variables.