Cursussen
InloggenBegin met het leren van AI
Cursussen
InloggenBegin met het leren van AI
+ 1

struct and class

what's the difference between structure and class in cpp?

structcppclassobjectquestionobject-oriented
4th Oct 2018, 10:37 AM
Mahmoud Badr
Mahmoud Badr - avatar
1 Antwoord
+ 9
The members of a structure are public by default while those of a class are private by default. More information: https://stackoverflow.com/questions/92859/what-are-the-differences-between-struct-and-class-in-c
4th Oct 2018, 11:58 AM
Harsh
Harsh - avatar

Heb je vaak vragen zoals deze?

Leer efficiënter, gratis:

  • Inleiding tot Python

    7,1 miljoen leerlingen

  • Inleiding tot Java

    4,7 miljoen leerlingen

  • Inleiding tot C

    1,5 miljoen leerlingen

  • Inleiding tot HTML

    7,5 miljoen leerlingen

Bekijk alle cursussen
Populair vandaag
What kind of questions do companies ask in Data Analyst interviews (including Python, SQL, Power BI, and Excel)?
2 Votes
Give some simple practice questions in C
0 Votes
??
1 Votes
How many time I can use sololearn trial mode?
1 Votes
Ошибка в приложении Sololearn
1 Votes
NEO V2.0
1 Votes
Did sololearn helped you to get easier a job?
1 Votes
Hello guys,
1 Votes
Help me
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes