answer the following: 1. Constructors are defined with ____ access modifiers. 2.
ID: 3918578 • Letter: A
Question
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 ____.
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 ____.
8. Class library files end with a(n) ____ extension.
9. The base constructor is called by
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.
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
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 object’s methods and properties. This describes the ____ feature.
18. Abstract classes can include ____.
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 ____.
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 application’s 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 ____.
publicExplanation / Answer
1)constructors are defined with pubic access modifiers
2)Enabling reuse of code through extending the functionality of classes describes inheritance as it relates to object oriented development.
3)add a reference to the base class
Because without extending the base class you cant derive it so you have to add a reference to it.
4) Packaging data attributes and behaviors into a single unit so that implementation details can be hidden describes abstraction as it relates to object oriented development
.5)False
overloaded methods must have same name but different signature in the sense different no of parameters whereas overriding methods must have same name and same signature
6)False
7)no implementation details are included
8) dll
9)typing base( ): as the first executable statement in the derived constructor
10)True
11)by inserting an identifier between left and right parentheses
12)GAC
13) classes
14)interfaces
15)tags the method as capable of being overridden.
16)protected
17)encapsulation
18)regular data field and method members
19)False
20)avoid fully qualifying references to class members
21)dynamic binding
22)polymorphism
23)polymorphism
24)True
25)Interfaces
26)containment
27)overriden method
28)abstract
29)partial
30)interfaces
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.