Absolute Java 6th Edition Savitch Test Bank - Download Now And Start Reading The Complete Content
Absolute Java 6th Edition Savitch Test Bank - Download Now And Start Reading The Complete Content
com
https://testbankfan.com/product/absolute-java-6th-edition-
savitch-test-bank/
OR CLICK BUTTON
DOWLOAD NOW
https://testbankfan.com/product/absolute-java-5th-edition-walter-
savitch-test-bank/
testbankfan.com
https://testbankfan.com/product/absolute-java-5th-edition-walter-
savitch-solutions-manual/
testbankfan.com
https://testbankfan.com/product/absolute-c-6th-edition-savitch-test-
bank/
testbankfan.com
https://testbankfan.com/product/strategic-management-an-integrated-
approach-10th-edition-hill-test-bank/
testbankfan.com
Labor Relations Development Structure Process 10th Edition
John Fossum Test Bank
https://testbankfan.com/product/labor-relations-development-structure-
process-10th-edition-john-fossum-test-bank/
testbankfan.com
https://testbankfan.com/product/financial-statement-analysis-and-
security-valuation-5th-edition-penman-solutions-manual/
testbankfan.com
https://testbankfan.com/product/personal-finance-11th-edition-garman-
test-bank/
testbankfan.com
https://testbankfan.com/product/mis-8th-edition-bidgoli-test-bank/
testbankfan.com
https://testbankfan.com/product/introduction-to-child-development-3rd-
edition-keenan-test-bank/
testbankfan.com
M Business 5th Edition Ferrell Solutions Manual
https://testbankfan.com/product/m-business-5th-edition-ferrell-
solutions-manual/
testbankfan.com
Chapter 7 Inheritance 1
Chapter 7
Inheritance
◼ Multiple Choice
1) Inheritance is the process by which a new class – known as a _________ - is created from another
class, called the _____________.
(a) base class, derived class
(b) derived class, base class
(c) inherited class, base class
(d) base class, inherited class
Answer: B
6) What does a derived class automatically inherit from the base class?
(a) instance variables
(b) static variables
(c) public methods
(d) all of the above
Answer: D
9) The special syntax for invoking a constructor of the base class is:
(a) super()
(b) base()
(c) parent()
(d) child()
Answer: A
10) An object of a derived class has the type of the derived class, and it also has the type of the base
class, and more generally, has the type of every one of its ___________ classes.
(a) descendant
(b) child
(c) ancestor
(d) sub
Answer: C
Copyright © 2016 Pearson Education, Inc., Hoboken NJ
Chapter 7 Inheritance 3
11) In using the keyword this in place of super(), the invocation of this must be the ___________
action taken by the constructor.
(a) first
(b) last
(c) it does not matter
(d) none of the above
Answer: A
13) If an instance variable is not modified by public, protected or private then it is said to have:
(a) Package access
(b) Default access
(c) Friendly access
(d) All of the above
Answer: D
16) The equals method for a class should have _________ as the type of its one parameter.
(a) String
(b) Object
(c) Integer
(d) Double
Answer: B
Copyright © 2016 Pearson Education, Inc., Hoboken NJ
Chapter 7 Inheritance 4
◼ True/False
1) A derived class contains only public instance variables and public methods from the base class.
Answer: False
3) A derived class is a class defined by adding instance variables and methods to an existing class.
Answer: True
4) When you define a derived class, you give only the added instance variables and the added methods
as well as all the methods from the base class.
Answer: False
6) Overriding is when a derived class redefines a method from the base class.
Answer: True
7) A constructor for a derived class begins with an invocation of a constructor for the base class.
Answer: True
8) The call to the base class constructor (super) must always be the last action taken in a constructor
definition.
Answer: False
9) You may substitute the keyword this for super() to call a constructor of the derived class.
Answer: True
10) An instance variable (or method) that is private in a base class is accessible by name in the definition
of a method in any other class.
Answer: False
11) Private methods of the base class are not available for use by derived classes.
Answer: True
◼ Short Answer/Essay
1) Explain what a call to super() does in a constructor of a derived class.
Answer: When super() is used in a constructor of a derived class, the matching constructor in the
immediate base class is invoked.
2) Define a base class to represent a Clock. Your class should have instance variables for hours,
minutes and seconds.
Answer:
public Clock()
hour = 0;
minute = 0;
second = 0;
setHour(h);
setMinute(m);
setSecond(s);
/**
*/
hour = h;
else
/**
*/
minute = m;
else
/**
*/
second = s;
else
return hour;
return minute;
return second;
//Facilitator methods
return "The current time is: " + hour + ":" + minute + ":" + second;
if(o == null)
return false;
return false;
else
3) Define a derived class to represent an alarm clock. Use the Clock class, created in number 2 above,
as your base class.
Answer:
/**
An alarm clock should include a time to sound the alarm as well as methods
*/
public AlarmClock()
super();
alarmHour = 0;
alarmMinute = 0;
alarmSecond = 0;
setAlarmHour(alarmH);
setAlarmMinute(alarmM);
setAlarmSecond(alarmS);
alarmHour = alarmH;
else
alarmMinute = alarmM;
else
alarmSecond = alarmS;
else
return alarmHour;
return alarmMinute;
return alarmSecond;
alarmSecond;
//Facilitators
if(o == null)
return false;
return false;
else
otherClock.alarmMinute) &&
(alarmSecond == otherClock.alarmSecond));
4) Create a test driver to test the functionality of your AlarmClock class created in number 3 above.
Answer:
System.out.println(myClock.toString());
myClock.setAlarmHour(7);
System.out.println(myClock.toString());
if(myClock.equals(mySecondClock))
else
5) Explain how parent and child classes are related to base and derived classes.
Answer: A base class is often called the parent class, and a derived class is often called a child
class.
quarries, quarrying, 21, 224, 225, 230, 233, 237, 276, 295
Quirinal, 253, 254
Radet (G.), La Lydie et le Monde grec, cited 2, 77 n. 3, 130 n. 1, n. 2,
n. 3, 131, 132 n. 3, 133 n. 4, 134 n. 5, 35, 136, 138, 139 n. 2, 141, 143
n. 3, 144, 145 n. 2, n. 3, n. 4, 146, 147 n. 3, 148, 273;
Revue des Universités du Midi, cited 128 n. 1, 135, 143 n. 3, 159 n.
5
Ramsay (W. M.), Journal of Hellenic Studies, cited 147 n. 3
Ramses II, 87 n. 9, 101
Ramses III, 44 n. 5
Rayet (O.), Monuments de l’Art Antique, cited 240 n. 2, 253 n. 4
Red Figure pottery, 107 n. 4, 108, 204, 326 n. 3, 335
Red Sea, 87
Regling (K.), apud Pauly Wissowa, 148 n. 5, 156 n. 2, 162 n. 3
Regulini-Galassi tomb, 93 n. 3, 243, 335
Reinach (A. J.), Journal des Savants, cited 110 n. 8
Reinach (S.), Chroniques d’Orient, cited 147 n. 3;
Cultes, Mythes, et Religions, cited 169;
Revue Archéologique, cited 70 n. 3
Reinach (Th.), L’Histoire par les Monnaies, cited 128 n. 1, 129 n. 3,
130 n. 2, 159 n. 5, 172 n. 4;
Revue Numismatique, cited 161 n. 2, 162 n. 3
Renaissance, 3, 32, 286
Revillout (E.), Précis du droit égyptien, cited 93 n. 2;
Les Rapports historiques et légaux des Quirites et des Égyptiens,
cited 93 n. 4;
Revue Égyptologique, cited 102 n. 1, n. 2,123 n. 7;
Society of Biblical Archaeology Proceedings, cited 123 n. 7
Revue Archéologique, see Dumont, Reinach (S.), Torr
Revue de l’Instruction Publique en Belgique, see Brants
Revue des Universités du Midi, see Radet
Revue Égyptologique, see Revillout
Revue d’Ethnologie et de Sociologie, see Macfie
Revue Historique, see Waltz
Revue Numismatique, see Babelon, Reinach (Th.)
rex, 303
Rhagon, 38
Rhegium, 74, 75, 210
Rheinisches Museum f. Philologie, see
Beloch, Gelzer, Hirschfeld, Holwerda, Koehler, Meyer (E.), Ruehl
Rheneia, 70, 71, 112
Rhitsona (Mykalessos), 106–108, 109 n. 4, 110, 113 n. 1, 114, 248, 335
Rhodes, 109, 112, 114, 119 n. 3, 171 n. 1, 187 n. 4
Rhodian pottery, see Milesian pottery
Rhodopis, 56 n. 3, 68
Rhoecus, 69 n. 1, 76, 80 n. 6
de Ridder (E.), de Ectypis quibusdam aeneis quae falso uocantur
Argiuo-Corinthiaca, cited 316 n. 9
Ridgeway (W.), Origin of Metallic Currency and Weight Standards,
cited 132 n. 3, 148 n. 6, 150, 160, 170–172;
Companion to Greek Studies, cited 128 n. 2, 150 n. 5;
Journal of Hellenic Studies, cited 172;
Numismatic Chronicle, cited 129 n. 7
ring of Gyges, 145–152, 293;
of Midas, 146, 151;
of Minos, 169;
of Polycrates, 70 n. 3, 83, 169;
of Venetian doge, 169;
rings as money, 148, 149, 171 n. 1, 293;
rings (seal), 150
Riviera, 312
Rivista di Storia Antica, see Costanzi
Rizzo (G. E.), 245 n. 1;
Bullettino della Commissione Archeologica Municipale di Roma,
cited 243 n. 4, 244, 246, 247
road makers, 14
roads, 130, 136, 190 n. 3, 232, 233, 273
Roberts (E. S.), Introduction to Greek Epigraphy, cited 106 n. 7, 123
n. 9
Rockefellers, 12
Roemische Mitteilungen, see Mitteilungen des deutschen
archäologischen Instituts in Rom
Rohde (E.), Psyche, cited 336 n. 1
Roland, 193 n. 7
Rome, Romans, 12 n. 3, 14, 15 n. 6, 20 n. 2, 22 n. 3, 23, 25, 32, 63 n.
4, 65 n. 3, 149, 160, 162 n. 3, 183 n. 6, 207, 211, chap. VIII passim,
261 n. 2, 277, 278, 287–289, 295, 296, 298, 303, 336–338
Roman Empire, 139 n. 2, 232;
Emperors, 60, 303
Romulus, 197, 198, 209, 221 n. 7, 239 n. 5
rope makers, 14
Roscher (W. H.), Lexikon, cited 336 n. 2
de Rougé (E.), Inscription Historique du roi Pianchi Mériamoun,
cited 96 n. 2;
Notice de quelques textes hiéroglyphiques récemment publiés par
M. Greene, cited 99 n. 3, n. 4;
(ed. J. de Rougé) Chrestomathie Égyptienne, cited 95 n. 3
de Rougé (J.), Étude sur les textes géographiques du temple d’Edfou,
cited 99 n. 3
royal road, great road, 130, 136, 273
Rud Amen, see Ammeris
Ruehl, Rheinisches Museum, cited 56 n. 2
Rufous (or Eastern) Swallow, 211 n. 4
Russia, 1, 110, 112 n. 1, 114, 142, 287
Rylands Library, Manchester, Catalogue of Greek Papyri, cited 66
n. 2;
Catalogue of the Demotic Papyri, see Griffith
Tabalos, 139
Tacitus, Annals, cited 311 n. 1;
Histories, cited 223 n. 5
Tafnekht, see Tnefachthus
Taharqa (Tirhakah), 88 n. 1, 97, 98, 99 n. 3, n. 5
tailors, 20
Tanaquil, 236 n. 2
Tanis, 121 n. 3
tanners, 20, 222
Tarbell (I. M.), History of the Standard Oil Company, cited 5 n. 8
Tarchon, 237 n. 1
Tarentum, 336 n. 1
Tarpeian Mount, Tarpeius, 223, 237
Tarquinii (Corneto), 93, 94, 182, 187, 215–219, 225, 240–243, 244 n.
1, 249, 251
Tarquinius (name), 237
Tarquinius Priscus, Lucius, 215–218, 221, 222 n. 7, 224 n. 5, 227–
229, 238, 239 n. 5, 240, 242, 256, 287, 295, 299
Tarquinius Superbus, 183 n. 6, 218, 223–227, 233, 234 n. 3, 247, 251,
278, 295
Tarquins, 14, 207, 215, 218, 223, 224 n. 5, 225–227, 230, 233, 234,
236, 237, 239, 240, 245, 247, 249, 255, 256, 289, 295, 296, 298
Tartessus (Tarshish), 68, 69, 81, 82, 177
taxation, taxes, 189, 190, 192 n. 1, 259, 287
tax-collector, 274, 305, 326 n. 9, 327 n. 1
τέχνη, 49
τεχνῖται, 21
Tefnakhte, see Tnefachthus
Tegea, 24 n. 1
Τειχιούσης, 81
Teisias, 106
Tellus, 228 n. 2
Temenos, 154, 156–159, 176, 178–180, 183 n. 3, 294, 316
temple, 162, 224, 277;
in Aegina (Aphaia), 318–320;
(Aphrodite), 318, 319;
(Damia and Auxesia), 167, 170, 174, 175, 320;
Agrigentum (Zeus Polieus), 274, 276;
Argos (Hera), 161–164, 175, 316 n. 7, 318–320, 333 n. 4;
Athens (Athena), 63;
(Olympian Zeus), 14, 63, 76 n. 5;
Corcyra, 244 n. 1;
Corinth (Aphrodite), 191 n. 3;
(Apollo), 76 n. 5;
Delphi (Apollo), 65;
Eleusis, 15;
Ephesus (Artemis), 128, 130 n. 6, 245, 272 n. 3;
Naukratis, 108;
(Aphrodite), 118, 119;
(Apollo), 110;
Olympia, 159;
Pallene in Attica (Athena), 52;
Rome (Artemis, Diana), 224 n. 5, 245, 246 n. 1;
(Ceres), 240 n. 2;
(Jupiter Tarpeius), 223, 237;
(Tellus), 228 n. 2;
Sabine (Feronia), 261 n. 2;
in Samos (Hera), 76, 82;
Syracuse (Athena), 276;
Tiryns (Hera), 320
Tenedos, 162 n. 3
tent-makers, 17
terra cottas, architectural, 243, 244 n. 1, 246, 250–252;
see also antefix
terra cotta tablets, 46, 186, 187, 207 n. 2, 242
Terrien de la Couperie (A.), see British Museum Catalogue of
Chinese Coins
Tertullian, Apologia adversus Gentes, cited 280 n. 1
tetradrachm, 131
Tetrapolis, 41 n. 3
Thackeray (W. M.), Virginians, cited 157 n. 4
thalassocracy, 76, 83, 95, 96, 165 n. 3, 174, 191 n. 2, 268 n. 3, 324,
330;
see also sea power
Thales, 1, 2, 12
Thasos, Thasians, 36 n. 3, 47, 271 n. 4
Theagenes, 9, 14, 30, 62 n. 6, 76 n. 5, 264–268, 296
Thebais (Homeric), 262 n. 1
Thebes, Boeotian, 24 n. 5, 108 n. 2, 164 n. 1, 261, 262
Thebes, Egyptian, 90 n. 1, 97, 99 n. 3
Themistius, Orations, cited 65 n. 5
Themistocles, 46, 47, 239 n. 4, 312 n. 5
Theocharides, 273
Theocles, 212
Theocritus, cited 69 n. 2, 79, 201 n. 8, 280 n. 1
Theodorus, 69 n. 1, 73, 76, 80, 83
Theognis, 7–9, 16 n. 2, 195 n. 5, 268, 290;
cited 8, 9, 47 n. 2, 57 n. 5, 266, 302
Theomestor, 84
Theophrastus, 189;
Historia Plantarum, cited 56 n. 2, 308 n. 2;
de Lapidibus, cited 129 n. 7
Theopompus, cited 144 n. 3, 156, 158 n. 6, 195 n. 2
Thera, Theraeans, 82 n. 1, 315 n. 2, 320 n. 5
θεράπαιναι, 22
Thero, 10 n. 1
Thersites, 28 n. 1
Theseus, 16, 169, 327, 329
Thesmophoria, 274
Thessalos, 56 n. 2
Thessaly, 24, 193
thetes, θῆτες, θητικὸς ὄχλος 14, 16, 19, 49
Thiersch (H.), see Furtwaengler
Thirlwall (C.), History of Greece, cited 51 n. 3
Thoas of Miletus, 268, 269
Thomas (E.), Ancient Indian Weights, cited 142 n. 3;
Chronicles of the Pathan Kings of Delhi, cited 142 n. 3
Thonis, 93
Thoricus, 40 n. 9, 41, 44 n. 1
Thrace, 36 n. 1, n. 3, 37, 50–52, 54–56, 58–62, 64, 72, 199–201, 271,
284, 288, 291, 292, 296
Thracian Chersonese, 53, 63 n. 7, 199 n. 10, 245 n. 2
Thrasybulus, 124, 191, 268–270
Thucydides, 25, 26, 33, 290, 299;
cited 9, 15 n. 2, 23 n. 1, n. 2, 24 n. 2, n. 4, 28 n. 5, 30 n. 3, 31 n. 1,
34 n. 3, 36 n. 1, 45 n. 5, 50, 51 n. 2, 62 n. 5, 63 n. 6, 68 n. 1, 70,
80 n. 5, 170, 174, 177, 178 n. 1, 180 n. 4, 184, 185, 190 n. 3, 193 n.
7, 212 n. 1, 260 n. 2, 264 n. 6, 294, 308 n. 2, 310, 313, 321, 325,
326, 329 n. 8, 331–334, 336 n. 1
Thyessos, 135
Tiber, 197, 221
Tilden (Mr), 5
Tillyard (H. J. W.), Agathocles, cited 209 n. 2, n. 3, 210 n. 1, n. 4
Tilsit, 311
Timaeus of Cyzicus, 281, 283, 288
Timaeus of Sicily, 210;
cited 22, 209, 220, 275 n. 2
Timarchus, 12
timber, 62, 271
Times, cited 5
Timoleon, 209
Tintoretto, 244
Tirhakah, see Taharqa
Tiryns, 163, 318
Tmolus, Mount, 129, 148
Tnefachthus I (Tafnekht), 88 n. 1, 95, 96, 98, 100, 101 n. 1
Tnefachthus II, 88 n. 1
Torr, Revue Archéologique, cited 169, 321 n. 2, n. 3, n. 4, 324 n. 5
“tortoises” (coins), 57 n. 5, 64 n. 3, 143 n. 1, 154, 156, 183 n. 6
touch-stone, 129
trade unions, 3
treasuries at Delphi (Corinthian, Caeretan), 187 n. 8, 255
treasury at Olympia (Sicyonian), 263
Triakon, 176 n. 3
trial by jury, 237
tribunes, military, 338
Trinakria, 44
Triptolemus, 238
triremes, 68, 165, 177, 191, 239, 325
Tritonis (Lake), 54, 55
Troezen, 169 n. 4
Trojan wars, 180 n. 4, 259 n. 1
Troy, 149, 298
trusts, 3, 5
Truth’s Investigator, The Great Oil Octopus, cited 5 n. 8
Tudors, 101, 267
Tullianum, see Mamertine prison
Tullus Hostilius, 261 n. 2, 337
τυραννὶς τελευταία, 29
τύραννος, 134, 302 n. 8
Turkey, 50, 270
Twelve Tables, 221, 336
Tyburn, 247
Tyrrhenians, 134 n. 5
Tyrrhenian amphora, 319
Tzetzes, Chiliades, cited 70 n. 3, 79 n. 4, 87 n. 9, 134 n. 5, 176 n. 3;
ad Lycophronem, cited 59 n. 1, 195 n. 2, n. 3
unemployment, 13 n. 5
Unger, Philologus, cited 159, 160, 183 n. 5
United States of America, 4, 5, 142, 267
University College, Oxford, 237
Ure (P. N.), Black Glaze Pottery from Rhitsona in Boeotia, cited 108
n. 1, n. 6, 248 n. 3, 287 n. 3;
Journal of Hellenic Studies, cited 38, 81, 155;
see also Burrows (R. M.)
Usimares, pharaoh of Egypt, 101
usurers, 2
Valerii, 337;
see also Publicola
Valerius (Marcus), 227
Valerius Maximus, cited 17 n. 3, 35 n. 3, 51 n. 2, 70 n. 3, 184 n. 2, 217
n. 5, 228 n. 1, n. 2, n. 4, 229 n. 2, 233, 275 n. 1, 337 n. 4
Varro, de Lingua Latina, cited 218 n. 3, 224 n. 5, 229 n. 2, 237, 248
n. 1;
de Re Rustica, cited 201 n. 5, n. 6, n. 8;
apud Charisium, cited 218;
apud Nonium Marcellum, cited 223 n. 1;
(?) apud Plutarchum, cited 222 n. 3
Vasco da Gama, 87
Vedic, 134 n. 5
Veii, 230, 234, 235, 296
Velabrum, 12 n. 3
Velia, near Paestum, 221 n. 2;
in Rome, 221 n. 2, 337 n. 5
Velletri, 246
Venice, 56 n. 3, 70 n. 3
Verrius Flaccus, cited 134 n. 5
Verviers, 311
Vestal virgins, 336 n. 1, 337
Vetterfeld, 171 n. 1
Via Appia, 232, 233
Victoria, Queen, 157 n. 4
Victorian age, 194
Vicus Tuscus, 221 n. 2
Vierteljahrschrift f. Social- u. Wirtschafts-Geschichte, see
Cavaignac, Sieveking (H.)
Vignate, Giovanni, 3
Virgil, Aeneid, cited 238 n. 3, 311 n. 1;
Schol. Veron. 238 n. 3
“Virgin” (coin), 54–57, 291
Vitruvius, cited 13 n. 5
Vittorio Emanuele monument, 65 n. 3
Volsinii, 249
Vourva pottery, 315 n. 5, 318 n. 1
Vroulia, 109, 114
Vulci, 119 n. 3, 251 n. 1
Welcome to Our Bookstore - The Ultimate Destination for Book Lovers
Are you passionate about testbank and eager to explore new worlds of
knowledge? At our website, we offer a vast collection of books that
cater to every interest and age group. From classic literature to
specialized publications, self-help books, and children’s stories, we
have it all! Each book is a gateway to new adventures, helping you
expand your knowledge and nourish your soul
Experience Convenient and Enjoyable Book Shopping Our website is more
than just an online bookstore—it’s a bridge connecting readers to the
timeless values of culture and wisdom. With a sleek and user-friendly
interface and a smart search system, you can find your favorite books
quickly and easily. Enjoy special promotions, fast home delivery, and
a seamless shopping experience that saves you time and enhances your
love for reading.
Let us accompany you on the journey of exploring knowledge and
personal growth!
testbankfan.com