Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

AP Computer Science A - Review 1. Exam Questions and answers, 100%/ latest 2024/25 exam prediction paper

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
03-02-2024
Written in
2023/2024

AP Computer Science A - Review 1. Exam Questions and answers, 100% Accurate, VERIFIED. Inheritance defines a relationship between _______ that share characteristics - -objects Inheritance is when a new class (_______) is created from an existing class (_______) - -subclass, superclass The subclass _______ characteristics of its superclass - -inherits When methods of superclasses are overwritten by subclasses - -Method overriding If part of the original method implementation from the superclass is retained, the rewrite is referred to as _______ - -Partial overriding To specify the inheritance relationship between a subclass and a superclass, in the declaration of the subclass, use the keyword _______ - -extends ex: public class Subclass _______ Superclass {} - -extends Are private instance variables of a superclass directly accessible to its subclasses? - -No Can subclasses directly invoke the public accessor and mutator methods of the superclass? - -Yes A method in a superclass is overriden in a subclass by defining a method with same _______ - - return type and signature (name and parameter types) _______ are never inherited - -Constructors A superclass must have a default, zero-parameter _______ - -Constructor A subclass constructor can be implemented with a call to the _______ - -super method (super();) If super is used in the implementation of a subclass constructor, it must be used in the _______ of the constructor body - -first line If no constructor is provided in the subclass, it calls the default constructor of the _______ - - superclass The mechanism of selecting the appropriate method for a particular object in a class hierarchy - - Polymorphism A method that has been overridden in at least one subclass is said to be _______ - -polymorphic Method calls are always determined by the type of the _______, not the type of the object reference - -actual object Making a run-time decision about which instance method to call is known as _______ - -Dynamic binding (late binding) When the compiler selects the correct overloaded method at compile time by comparing the methods' signatures - -Overloading When the actual method that will be called is not determined by the compiler, instead the compiler only determines if a method can be called, while the run-time environment determines how it will be called - -Dynamic binding _______ applies only to overridden methods in subclasses - -Polymorphism Casting a superclass to a subclass type is called _______ - -Downcasting A run-time exception thrown to signal an attempt to cast an object to a class of which it is not an instance - -ClassCastException A superclass that represents an abstract concept, and therefore should

Show more Read less
Institution
AP Computer Science A
Course
AP Computer Science A









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
AP Computer Science A
Course
AP Computer Science A

Document information

Uploaded on
February 3, 2024
Number of pages
5
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$9.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Terryl Cornell College
View profile
Follow You need to be logged in order to follow users or courses
Sold
132
Member since
2 year
Number of followers
39
Documents
8399
Last sold
2 weeks ago

3.3

16 reviews

5
2
4
7
3
3
2
1
1
3

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions