- Which of the following attributes declared in the Car class is not a value type variable?
- public Decimal fuelCapacity;
- public Enum carColor;
- public String registrationNumber;
- public Int numberOfSeats
- Which of the following is not a reference type variable?
- Class
- String
- Struct
- Interface
- In C#, a child class can inherit from multiple parent classes. Is this statement correct?
- Yes
- No
- Which of the following statements about interfaces and classes is not correct?
- A class can implement multiple interfaces.
- An interface can have both function declarations and definitions.
- A struct data variable cannot inherit from another struct.
- In inheritance, if both the base class and the derived class have a function with the same name, we can use the base keyword to implicitly call the function of the base class.
- Which of the following statements about access modifiers is not correct?
- If a member variable is declared as public, it can be accessed across the entire application.
- If a member variable is declared as private, it can only be accessed in the same class.
- If a member variable is declared as protected, it can be accessed throughout the namespace.
- If a member variable is declared as protected internal, it can be accessed by classes in the name namespace and the classes that derive from it.