0

Which other keywords are also used to declare the class other than class? A. struct B. union C. object D. both a & b

20th Feb 2018, 9:06 AM
S.k. Raj
S.k. Raj - avatar
4 Respostas
- 2
Struct and union take the same definition of class but differs in the access techniques. so correct answer is (d)
20th Feb 2018, 10:47 AM
S.k. Raj
S.k. Raj - avatar
+ 4
I think class is the only keyword.. struct is something else
20th Feb 2018, 9:20 AM
Nitzan
Nitzan - avatar
+ 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
20th Feb 2018, 10:27 AM
Alex
Alex - avatar
0
A. struct
4th Jun 2023, 7:11 PM
Adnan Mohammed
Adnan Mohammed - avatar