• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • 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 Respuesta
+ 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

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Can you give me some advice on what project I can start with today to practice HTML, CSS, and JavaScript?
0 Votes
I've a HTML code question
0 Votes
@sololearn Python
1 Votes
C++
0 Votes
Appointment Booking website
0 Votes
Building an AI Call Tracking & Routing System — Anyone tried it?
0 Votes
I am asking for your help, I need to optimisate my code.
0 Votes
Offline AI Model with Fast Voice Chat
0 Votes
Activate account
0 Votes
Give me advice
1 Votes