Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Match the correct term to the correct definition. aggregation class abstraction

ID: 3807130 • Letter: M

Question

Match the correct term to the correct definition.

aggregation

class abstraction

class encapsulation

composition

immutable class

instance variables

stack

this

array list

casting objects

dynamic binding

inheritance

polymorphism

subclass

exception

  

Class that contains all private data fields and no mutator methods and no accessor methods that would return a reference to a data field object.

A method may be defined in a superclass, but is overridden in a subclass.

An object that represents an error or condition which prevents execution from proceding normally.

Combining of methods and data into a single data structure.

A data structure for storing a list similar to an array but the list size can grow and shrink.

Defining a new class by extending an existing class.

A special form of association that represents an ownership relationship between two classes.

Refers to the feature that an object of a subclass can be used by any code designed to work with an object of its superclass.

An object that consists of other objects.

Class that inherits from or extends a superclass.

A technique in software development that hides detailed implementation. If you decide to change the implementation, the client program will not be affected.

Refers to the object itself.

Converting an object of one object type into another object type. The contents of the object are not changed.

Variables that make up the data template for a Class.

A data structure that holds objects in a last-in first-out fashion.

.   

Match the correct term to the correct definition.

aggregation

class abstraction

  

class encapsulation

composition

  

immutable class

instance variables

stack

.   

this

array list

casting objects

dynamic binding

  

inheritance

polymorphism

  

subclass

  

exception

Explanation / Answer

1) Class that contains all private data fields and no mutator methods and no accessor methods that would return a reference to a data field object. is called immutable class

2) A method may be defined in a superclass, but is overridden in a subclass. is called dynamic binding

3) An object that represents an error or condition which prevents execution from proceding normally. is called exception

4) Combining of methods and data into a single data structure. is called as encapsulation or class

5) A data structure for storing a list similar to an array but the list size can grow and shrink. is array list

6) Defining a new class by extending an existing class. is inheritence

7) A special form of association that represents an ownership relationship between two classes is composition

8) Refers to the feature that an object of a subclass can be used by any code designed to work with an object of its superclass. is polymorpism

9) Class that inherits from or extends a superclass. is subclass

10) A technique in software development that hides detailed implementation. If you decide to change the implementation, the client program will not be affected. is abstraction

11) Refers to the object itself. this (keyword)

12) Converting an object of one object type into another object type. The contents of the object are not changed. is casting objects

13) variables that make up the data template for a Class. is instance variables

14)A data structure that holds objects in a last-in first-out fashion. is stack

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote