Which of the following statements regarding abstract methods is false?
a. Abstract classes have constructors.
b. A class that contains abstract methods must be abstract.
c. It is possible to declare an abstract class that contains no abstract methods.
d. An abstract method cannot be contained in a nonabstract class.
e. A data field can be declared abstract.
e. A data field can be declared abstract.
because a data field cannot be declared abstract. Only methods and classes can be declared abstract.
You might also like to view...
What is the difference between an object and a class?
What will be an ideal response?
Which of the following statements are true?
a. All files are stored in binary format. So, all files are essentially binary files. b. Text I/O is built upon binary I/O to provide a level of abstraction for character encoding and decoding. c. Encoding and decoding are automatically performed by text I/O. d. For binary input, you need to know exactly how data were written in order to read them in correct type and order.
Case-Based Critical Thinking QuestionsCase 7-2Kyra is quizzing her friend Leon about the various options available in CSS to direct parts of the Web page to different output devices, in preparation for his test tomorrow.Kyra asks Leon how she can view a likeness of the print style. What is his answer?
A. Print the page. B. Use the print preview feature in the browser. C. Use the set print options feature. D. all of the above
In ____________________ (aggregation), one or more members of a class are objects of another class type.
Fill in the blank(s) with the appropriate word(s).