¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Which other keywords are also used to declare the class other than class? A. struct B. union C. object D. both a & b
4 Respuestas
- 2
Struct and union take the same definition of class but differs in the access techniques.
so correct answer is (d)
+ 4
I think class is the only keyword.. struct is something else
+ 1
@nitzan
In c++ a class is basically the same as a struct, but the default access specifiers are public for struct and private for class. This applies to members and also for inheritance
0
A. struct