Which of the following statement is not true about following code?
public class A
private enum WeekDays : int
static void Main(string[ ] args)
// Use enum WeekDays here
To define a variable of type enum Weekdays in Main(),We must declare enum WeekDays as public and should use the statement, A.WeekDays c;
We must declare enum WeekDays as public to be able to use it outside the class A.
enum WeekDays being private it cannot be used in Main().
None of the above
We can't access private members out side the scope. To define a variable of type enum WeekDays in Main(),We must declare enum WeekDays as public .
Sir option b is also telling that only. Is there any difference in option b and the ans provided by u.
Back To Top