Computer Science Quiz Review Inheritance Java APCS

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

The process of using features (both attributes and methods) of an existing class.

Composition

Type of relationship described by "has-a"

Composition

Is the superclass of all classes

Object

The OOP feature whereby all the data fields of an object are placed in the same container.

encapsulation

This keyword is required in the heading of a subclass.

extends

Type of relationship described by "is-a"

inheritance definition

A computer science teacher is-a human being.

inheritance example

A poodle is-a dog. A dog is-a mammal. a mammal is-a animal.

multi-level inheritance example

When a method or attribute is declared ____________, it can only be accessed from the methods of the same class.

private

When a method or attribute is declared ____________, it can only be accessed from the methods of the same package.

protected

When a method or attribute is declared ____________, it can only be accessed from any method of any class.

public

In Inheritance, this class constructor is completed second.

subclass

In Inheritance, this is the new class that inherits the features from the existing class.

subclass

This keyword is used to send information to the superclass constructor and must be the first command in the subclass constructor.

super

When both the subclass and the superclass have a method with the same name, this keyword is used when you want to call the superclass' method.

super

In Inheritance, this class constructor is completed first.

superclass

In Inheritance, this is he existing class.

superclass

You may override the toString() method of the Object class

true


संबंधित स्टडी सेट्स

Senior Seminar - Module 9: Monitoring for Health Problems

View Set

5 - Life Insurance Underwriting and Policy Issue

View Set

Global Marketing Exam 2- Ch. 16: Strategic Elements of Competitive Advantage

View Set

Ch. 10 - Project Communications Management

View Set

NCLEX-PN 7th ed. Test review: Ch 7 prioritizing patient care: leadership, delegation and emergency response planning

View Set