wrong question from the game sololearn | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

wrong question from the game sololearn

I can’t insert a screenshot, but in the c ++ test competitive game there is a question: "Struct can have classes inside of it?" and 2 answers: true or false. In this question, the final answer is false I didn’t understand something or is this a wrong question !? A list structure, for example, may have a class inside of itself

16th Feb 2020, 12:46 PM
Hamster
Hamster - avatar
7 Answers
+ 2
But a class encapsulates its members already, isn't it? Then the class in structure shouldn't be instantiable or used by code outside the structure? is this what it meant for?
16th Feb 2020, 4:14 PM
Ipang
+ 2
Thank you ~ swim ~ I'll be reading that 👍
16th Feb 2020, 4:50 PM
Ipang
+ 2
No problem ~ swim ~ , A read is better than a "compressed" version written in limited space like answer for a thread. Sorry to bother, I didn't know 😁
16th Feb 2020, 4:55 PM
Ipang
+ 1
~ swim ~ What are the use cases of this structure with class definition?
16th Feb 2020, 4:00 PM
Ipang
+ 1
Yes, it's a wrong question. Apologies for misleading... I submitted that question.
16th Feb 2020, 5:22 PM
Manikanta Nallamalli (Mittu)
Manikanta Nallamalli (Mittu) - avatar
+ 1
I also came across this question a week ago, and wrote a complaint that the answer was incorrect, but the answer has still not been fixed. I wonder, if someone is considering complaints.
17th Feb 2020, 12:48 PM
andriy kan
andriy kan - avatar
- 3
Shirin
16th Feb 2020, 11:52 PM
ali fagamirad
ali fagamirad - avatar