Docsity

Exam 2 | CSCI 1302 - Software Development, Quizzes of Software Engineering

Toggle sidebar
bg1
TERM 1
Subclass
DEFINITION 1
A class that extends another class. It inherits the state and
behaviors of the class it extends. It should be more specific
than the class it extends
TERM 2
Superclass
DEFINITION 2
Is a class that has been extended by another class. It allows
the extending class to inherit its state and behaviors.
TERM 3
Super()
DEFINITION 3
Can be used in a class to refer to its parent class. Using this
reference, we can access a parent class' members.
TERM 4
Extends
DEFINITION 4
Used in a class declaration to specify the superclass; used in
an interface declaration to specify one or more
superinterfaces.
TERM 5
Abstract Class
DEFINITION 5
Represents a generic concept in a class hierarchy.
Represents an entity that is usually insufficiently defined to
be useful by itself.
pf3
pf4

Partial preview of the text

Download Exam 2 | CSCI 1302 - Software Development and more Quizzes Software Engineering in PDF only on Docsity!

Subclass

A class that extends another class. It inherits the state and behaviors of the class it extends. It should be more specific than the class it extends TERM 2

Superclass

DEFINITION 2 Is a class that has been extended by another class. It allows the extending class to inherit its state and behaviors. TERM 3

Super()

DEFINITION 3 Can be used in a class to refer to its parent class. Using this reference, we can access a parent class' members. TERM 4

Extends

DEFINITION 4 Used in a class declaration to specify the superclass; used in an interface declaration to specify one or more superinterfaces. TERM 5

Abstract Class

DEFINITION 5 Represents a generic concept in a class hierarchy. Represents an entity that is usually insufficiently defined to be useful by itself.

Overrides

When a child class defines a method with the same name and signature as a method in the parent class we say that the child's version _____________ the parent's version in favor of its own. TERM 7

getClass() Method

DEFINITION 7 Returns an Object class. The Object class is the root of the class hierarchy in java. Every class has Object as a superclass. All objects, including arrays, implement the methods of this class. TERM 8

.class Member

DEFINITION 8 What makes up a particular class. TERM 9

instanceOf

DEFINITION 9 Can be used to test if an object is of a specified data type. TERM 10

Private Class

DEFINITION 10 Makes it where something can only be referenced in the class in which it was defined.

Adapter

A term for a class that implements a listener interface with methods that have no content.