What is the Difference between struct and class in terms of Access Modifier?
Options
- By default all the struct members are private while by default class members are public.
- By default all the struct members are protected while by default class members are private.
- By default all the struct members are public while by default class members are private.
- By default all the struct members are public while by default class members are protected.
CORRECT ANSWER : By default all the struct members are public while by default class members are private.
Write your comments