Do I need to use classes in C++?

No, you should not put everything into classes . Whoever told you that was wrong. C++ is not (just) an OO language, it is a multi-paradigm language. Additionally, putting everything into classes does not mean that code is object oriented (especially since for static methods you don’t need actual objects, just types).

Sizin İçin Seçtik  What is constructor explain with example in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *