• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
+ 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 Antwort
+ 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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
I tried changing my username already to see if the name on the certificates will change but they didn’t .
1 Votes
Started learning python
0 Votes
Hi guys I’m enjoying learning but problem is practice
0 Votes
Websites for frontend developers
1 Votes
Discrete mathematics (python)
0 Votes
Computador
0 Votes
I need help in programing
0 Votes
Error in Ethical AI Foundations course
1 Votes
C++, c# , graphical interface
1 Votes
I need a mentor in coding specifically AI
0 Votes