I think Codechef is not the right place to use the Object Oriented Features of C++.
The main reason is it consumes more memory and time than Functional Programming!
You will always see the
int main() in the Codechef and other Programming contests.
In case you are using JAVA, Java will not spare you if you will not use its OOP features
OOP comes handy when we are in the field of software development. Algorithmic writing doesn’t need much OOP features.
Many features like:
- Encapsulation, etc
are not used in Algorithmic Programming.
So understand the beauty of code!