1. specific types of objects assume features of more general classes through____
ID: 3808479 • Letter: 1
Question
1. specific types of objects assume features of more general classes through_______
a. polymorphism
b. encapsulation.
c. inheritance
d. structure
3. a child class is also called a(n)_____
a. extended class
b. base class
c. superclass
d. delineated class
5. a derived class usually contains_____ than its parent.
a. more fields and methods
b. the same number of fields but fewer methods
c. fewer fields but more methods
d. fewer fields and methods
7. a base class named Garden contains a private field width and a property public in Width that contains get and set accessors. a child class named VegetableGarden does not contain a Width property. when you write a class in which you declare and object as follows, what statement can you use to access the VegetableGarden's width?
a. myGarden.Width
b. myGarden.base.Width
c. VegetableGarden.Width
d. you cannot use Width with VegetableGarden object
9. when a base class and a derived class contain a method with the same name and parameter list, and you call the method using a derived class object,____
a.you receive an error message
b. the base class version overrides the derived class version.
c. the derived class version overrides the base class version.
d. both method versions execute
11. when base and derived classes contain a method with the same name and parameters list, you can use the base class method within the derived class by using the keyword_______
before the method name.
a. New
b. overrides
c. base
d. super
13. the root base class for all other class types is_____
a. Base
b. Super
c. Parent
d. Object
15. when you create and derived class objects,________
a. the base class and derived class contains constructors execute simultaneously
b. the base class constructor must execute first, and then the derived class constructor executes.
c. the derived class constructor must execute first, and then the base class constructor executes.
d. neither the base class constructor
nor the derived class constructor executes.
17. when you create an abstract class,____
a. you can inherit from it
b. you can create concrete objects from it
c. both of these are true.
d. none of these is true.
19. within a interface,_______
a. No methods can be abstract
b. some methods might be abstract
c. some, but not all, methods must be abstract
d. all methods must be abstract.
Explanation / Answer
1) - The answer is c
2) - The answer is a
3) - The answer is a
7) -
9) - The answer is c
11) - The answer is b
13) - The answer is d
17) - The answer is d
19) - The answer is d
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.