Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

SCJA-drills-chap07

QuestionAnswer
What is inheritance used for? Inheritance is used to place common code in a base class.
Give two advantages of using inheritance when writing code. Inheritance makes code more modular and easier to maintain.
What is the "extends" keyword used for? The extends keyword is used to extend or inherit a class.
Which keyword is used in order to inherit a class? The extends keyword is used to extend or inherit a class.
What does subclass inherit from its superclass class? When a class inherits another class, it gains access to all of its visible methods and instance variables.
What is a superclass? The class that is being inherited is referred to as the base class or superclass.
What is a base class? The class that is being inherited is referred to as the base class or superclass.
How is a class that is being inherited referred to? The class that is being inherited is referred to as the base class or superclass.
What is a subclass? The class that gains the functionality of a superclass by inheritance is called the subclass.
A method in a superclass can be overridden by the subclass having a method with an identical signature.
What is the "super" keyword used for? The super keyword can be used to access the overridden method.
How many classes may a class extend? A class can only extend one other class.
What is a concrete class? A concrete class is a class that can be instantiated; all of its methods have been implemented.
What is an abstract class? An abstract class cannot be instantiated. It must be extended and may or may not contain abstract methods.
Describe the process of extending an abstract class. When a class extends an abstract class, all of the abstract methods must be implemented.
What is an interface used for? An interface is used to define a public interface that a class must have.
What is the "implements" keyword used for? The keyword implements is used to implement an interface.he keyword implements is used to implement an interface.
How many interfaces may a class implement? How is it done? A class may implement multiple interfaces by using a comma-delimited list.
Describe the process of implementing an interface. A class that implements an interface must implement all of the methods contained in the interface.
What is encapsulation? Encapsulation is the concept of storing related data and code together.
What are access modifiers used for? Access modifiers can be used to restrict access to methods and instance variables.
What does the publivc access modifier do? The public access modifier allows any class to access the public method or instance variable.
What does the private access modifier do? The private access modifier allows only methods in the same class to access the private method or instance variable.
What is information hiding? Information hiding is the concept of using restrictive access modifiers to hide the implementation details of a class.
When creating methods, how should the restrictivity of the modifiers be chosen? When creating methods or instance variables, the most restrictive access modifier possible should be used.
What is a getter? A getter is used to access private instance variables.
What is a setter? A setter is used to set private instance variables.
What conventions are used for getters and setters? Both getters and setters should follow the JavaBeans naming convention. They should start with ‘get’, ‘set’, or ‘is’, followed by the variable name, starting with a capital letter.
Created by: fd99
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards