0

Can we make classes in c++ using sola learn app

Can we make classes in c++ using sola learn app

24th Aug 2017, 5:13 AM
Oshada Attanayake
Oshada Attanayake - avatar
2 Answers
+ 3
yes check this out very simple but basic class example https://code.sololearn.com/ckwq3o9ob8E9/?ref=app
24th Aug 2017, 7:46 AM
Million Gashawbeza
Million Gashawbeza - avatar
+ 5
The regular way to create classes, which you probably mean, is to write source code in a cpp file and definitions in a header file, but since SoloLearn, and also any Online compiler/judge can process a single file, you should write them all alongside the main method.
24th Aug 2017, 5:41 AM
Ali Rashidi
Ali Rashidi - avatar