You are not logged in.

#1 2015-05-26 05:40:48

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Access Modifier:

Question:
What is the Difference between struct and class in terms of Access Modifier?

Option A):
By default all the struct members are public while by default class members are protected.
Option B):
By default all the struct members are public while by default class members are private.
Option C):
By default all the struct members are private while by default class members are public.
Option D):
By default all the struct members are protected while by default class members are private.

Correct Answer is Option B):
By default all the struct members are public while by default class members are private.


Failure is the first step towards seccess.

2015-05-26 05:40:48

Advertisement
Ads By Google

Re: Access Modifier:



\n

Board footer