Interview questions C# - Universitatea Agrara de Stat din Moldova

FITUICICaiet Programare C Profesor Carcea

preview iconExtras din document

1. What’s the implicit name of the parameter that gets passed into the class’ set method? Value, and its datatype depends on whatever variable we’re changing. 2. How do you inherit from a class in C#? Place a colon and then the name of the base class. Notice that it’s double colon in C++. 3. Does C# support multiple inheritance? No, use interfaces instead. 4. When you inherit a protected class-level variable, who is it available to? Classes in the same namespace. 5. Are private class-level variables inherited? Yes, but they are not accessible, so looking at it you can honestly say that they are not inherited. But they are. 6. Describe the accessibility modifier protected internal. It’s available to derived classes and classes within the same Assembly (and naturally from the base class it’s declared in). ...

Download
alert iconRaporteaza o eroare
0 Comenteaza
+1
Posteaza

Fituici: Interview questions C# Universitate: Universitatea Agrara de Stat din Moldova