in terms of space and time, what is the best : working with classes, or working only with functions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

in terms of space and time, what is the best : working with classes, or working only with functions?

This summer i'll have an exam on c++ an i was wondering which one of those 2 are best to work with.... ps. i'm no allowed to work with outter libraries like cstlib, conio.h, cmath, ctring, etc, only if they specfies.

27th Mar 2018, 4:14 PM
Thr3at
1 Answer
+ 6
Class experience translates well to function experience. Function experience leaves massive holes in class knowledge. Concentrate on the class. Most student level projects do not require classes and could easily be done as functions. However, they are good practice for the more massive classes that tend to be used in the workplace.
27th Mar 2018, 5:39 PM
John Wells
John Wells - avatar