Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Multiple Choice. Write the letter of the best answer in the blank to the left A certain Java/CN1 class named Point has constructors Point) and

image text in transcribed

image text in transcribed

Multiple Choice. Write the letter of the best answer in the blank to the left A certain Java/CN1 class named "Point" has constructors "Point)" and Point (int x, int y) ". This is an example of A. abstraction B. encapsulation C. inheritance D. overloading E. overriding A certain Java/CN1 class named Sphere contains a method named getColor () which returns the color of the Sphere object. This method is an example of a (an) A. accessor B. mutator C. aggregation D. design pattern E. abstraction A certain Java/CN1 class named "B" extends another class named "A". Class B defines a method named "C" with the same signature as that of a method named "C" in Class A. Method C does not contain the keyword "super". A program constructs an instance of B and invokes method "C" in that object. The code which will be executed as a result of this invocation is A. the code in A.C B. the code in B.C C, the code in . followed by the code in . D. the code in B.C followed by the code in A.C E. it depends on the code in . F. it depends on the code in B.C G. None of the above If a Java/CN1 program contains a declaration such as "class A {...)", where "..." represents the code defining the class, then A. A has no parent class B. A is its own parent C. A is a superclass of Object D. A is a subclass of Object E. A is an abstraction of Object In Java/CN1, inheritance is indicated using the keyword A. abstract B. extends C. implements D. static E. new F. none of the above Before Java 8, an interface consists of A. a set of method declarations (abstract methods) B. a set of method definitions (implementations) C. a class description given in an online Application Programming Interface (API) D. the set of classes in an inheritance hierarchy E. a set of accessor (selector and/or mutator) methods In a UML Class Diagram depicting classes named "Student" and "Course", a label named "takes" on the diagram would most likely represent A. a method in Student B. a method in Course C. an association D. a multiplicity E. a composition In CN1, when one object is registered as containing the method(s) to be invoked when another object generates an "ActionEvent", we say the first object is a (an) A. event generator B. action performer C. listener D. layout manager E. exception handler An association between two objects named "A" and "B" such that (1) B is referenced by A but not by any other object, and (2) the lifetime of B is controlled by A, is called a (an) A. Composition B. Aggregation C. Abstraction D. Encapsulation E. Inheritance A CN1 build-in class Container is a A. component B. layout manager C. design pattern D. framework E. more than one of the above F.none of the above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions