answer the following:
1. Constructors are defined with ____ access modifiers.
2. Enabling reuse of code through extending the functionality of classes describes ____ as it relates to object oriented development.
3. In order to derive from a user-defined base class, you must ____.
| open both files in the same application |
| add a reference to the base class |
| store both files using the same extension |
| store both files in the same directory |
4. Packaging data attributes and behaviors into a single unit so that implementation details can be hidden describes ____ as it relates to object oriented development.
5. An overloaded method must have exactly the same signature as the method it is overriding.
6. Today applications are normally designed to be single, self-contained, monolithic programs.
7. The distinguishing characteristic of an abstract method is ____.
| no parameters are found in the heading for the method |
| no implementation details are included |
| they cannot be included in abstract classes |
| methods may not include a return type |
8. Class library files end with a(n) ____ extension.
9. The base constructor is called by
| adding className( ): between the constructor heading and the opening curly brace |
| adding base( ): between the constructor heading and the opening curly brace |
| typing base( ): as the first executable statement in the Main( ) method |
| typing base( ): as the first executable statement in the derived constructor |
10. Partial classes enable a class to be split into two or more files and combined when the application is compiled and ran.
11. A generic class is defined ____ on the class definition line.
| by inserting an identifier between left and right brackets |
| by inserting the word generic |
| by inserting an identifier between left and right parentheses |
12. One of the developer tools available with Visual Studio that can be used to view an assembly is ____.
13. Components are implemented in C# through ____.
14. To override a method, the base method may include any of the following keywords, EXCEPT ____.
15. When you add the virtual keyword to a method heading, it
| forces all classes derived from that class to include implementation details for the method. |
| tags the method as capable of being overridden. |
| overrides a method from a base class. |
| converts the class to an abstract class. |
16. Which access modifier should be used to give derived classes direct access to change the parentmember data. This access modifier does not allow classes that instantiate objects of the class to have access to change member data?
17. By defining data members as private, you protect the data and enable access only through the objects methods and properties. This describes the ____ feature.
18. Abstract classes can include ____.
| properties and virtual methods |
| regular data field and method members |
19. You cannot spread the definition of your classes over multiple files using the partial keyword. Partial classes are reserved for use by the IDE.
20. To add dynamic link library components, add a reference to the components in your program and include a using directive. The reason for adding the using directive is to ____.
| avoid fully qualifying references to class members |
| enable the program to use class members |
| eliminate the syntax errors |
| enable an executable to be created |
21. Determining which method to call at runtime based on which object invokes the method describes ____.
22. Calls to the ToString( ) method emphasize the use of ____.
23. Enabling multiple implementations of the same behaviors so that the appropriate implementation can be executed based on the situation describes ____ as it relates to object oriented development.
24. Once a DLL is available, any application can add a reference to the DLL. The referenced file with the .dll extension becomes part of the applications private assembly.
25. ____ contain no implementation details for any of their methods. Instead all their members are considered abstract.
26. Classes can have a has a relationship. This is a concept called ____ or aggregation.
27. Replacing a method defined at a higher level creates a(n) ____.
28. Use the ____ keyword to mark a class so that it can be used only as the base class from which other classes can be derived.
29. The ____ keyword can be used to spread the definition of your classes over multiple files.
30. Multiple inheritance is not possible in C#; ____ provides the closest work around to this because a class can implement multiple ____.