Using classes without objects | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Using classes without objects

i am confused in this question which i have discussed in the comments of my code https://code.sololearn.com/c3Mb52RdAeW8/?ref=app link of the question (question no. 8 in level 1) https://www.codesdope.com/practice/cpp-classes-and-objects/ plz help me in this question i am a beginner in Oops so plz explain it in an easier way thank u!!!

8th Jun 2018, 8:44 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
4 Answers
+ 3
Donna but we are not supposed to create any object of the class btw thnx for ur help
8th Jun 2018, 9:06 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 3
Donna i have added the link of the question
8th Jun 2018, 9:12 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 2
Question 8 is referring to a static class. [edit] static member not a static class.
8th Jun 2018, 9:23 PM
ODLNT
ODLNT - avatar
+ 2
Donna wow!!! excellent!!! just one more question what is the use of variable n?
8th Jun 2018, 9:41 PM
Saurabh Tiwari
Saurabh Tiwari - avatar