AP Computer Science A Review 1 Exam
With Correct Solutions 2024
Inheritance .defines .a .relationship .between ._______ .that .share .characteristics .- .correct
.answer.objects
Inheritance .is .when .a .new .class .(_______) .is .created .from .an .existing .class .(_______) .-
.correct .answer.subclass, .superclass
The .subclass ._______ .characteristics .of .its .superclass .- .correct .answer.inherits
When .methods .of .superclasses .are .overwritten .by .subclasses .- .correct .answer.Method
.overriding
If .part .of .the .original .method .implementation .from .the .superclass .is .retained, .the .rewrite .is
.referred .to .as ._______ .- .correct .answer.Partial .overriding
To .specify .the .inheritance .relationship .between .a .subclass .and .a .superclass, .in .the
.declaration .of .the .subclass, .use .the .keyword ._______ .- .correct .answer.extends
ex: .public .class .Subclass ._______ .Superclass .{} .- .correct .answer.extends
Are .private .instance .variables .of .a .superclass .directly .accessible .to .its .subclasses? .-
.correct .answer.No
Can .subclasses .directly .invoke .the .public .accessor .and .mutator .methods .of .the
.superclass? .- .correct .answer.Yes
A .method .in .a .superclass .is .overriden .in .a .subclass .by .defining .a .method .with .same
._______ .- .correct .answer.return .type .and .signature .(name .and .parameter .types)
_______ .are .never .inherited .- .correct .answer.Constructors
A .superclass .must .have .a .default, .zero-parameter ._______ .- .correct .answer.Constructor
A .subclass .constructor .can .be .implemented .with .a .call .to .the ._______ .- .correct
.answer.super .method .(super();)
With Correct Solutions 2024
Inheritance .defines .a .relationship .between ._______ .that .share .characteristics .- .correct
.answer.objects
Inheritance .is .when .a .new .class .(_______) .is .created .from .an .existing .class .(_______) .-
.correct .answer.subclass, .superclass
The .subclass ._______ .characteristics .of .its .superclass .- .correct .answer.inherits
When .methods .of .superclasses .are .overwritten .by .subclasses .- .correct .answer.Method
.overriding
If .part .of .the .original .method .implementation .from .the .superclass .is .retained, .the .rewrite .is
.referred .to .as ._______ .- .correct .answer.Partial .overriding
To .specify .the .inheritance .relationship .between .a .subclass .and .a .superclass, .in .the
.declaration .of .the .subclass, .use .the .keyword ._______ .- .correct .answer.extends
ex: .public .class .Subclass ._______ .Superclass .{} .- .correct .answer.extends
Are .private .instance .variables .of .a .superclass .directly .accessible .to .its .subclasses? .-
.correct .answer.No
Can .subclasses .directly .invoke .the .public .accessor .and .mutator .methods .of .the
.superclass? .- .correct .answer.Yes
A .method .in .a .superclass .is .overriden .in .a .subclass .by .defining .a .method .with .same
._______ .- .correct .answer.return .type .and .signature .(name .and .parameter .types)
_______ .are .never .inherited .- .correct .answer.Constructors
A .superclass .must .have .a .default, .zero-parameter ._______ .- .correct .answer.Constructor
A .subclass .constructor .can .be .implemented .with .a .call .to .the ._______ .- .correct
.answer.super .method .(super();)