SCJA-drills-chap07
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
show | Inheritance is used to place common code in a base class.
🗑
|
||||
Give two advantages of using inheritance when writing code. | show 🗑
|
||||
What is the "extends" keyword used for? | show 🗑
|
||||
Which keyword is used in order to inherit a class? | show 🗑
|
||||
show | When a class inherits another class, it gains access to all of its visible methods and instance variables.
🗑
|
||||
show | The class that is being inherited is referred to as the base class or superclass.
🗑
|
||||
show | The class that is being inherited is referred to as the base class or superclass.
🗑
|
||||
show | The class that is being inherited is referred to as the base class or superclass.
🗑
|
||||
show | The class that gains the functionality of a superclass by inheritance is called the subclass.
🗑
|
||||
show |
🗑
|
||||
What is the "super" keyword used for? | show 🗑
|
||||
show | A class can only extend one other class.
🗑
|
||||
show | A concrete class is a class that can be instantiated; all of its methods have been implemented.
🗑
|
||||
show | An abstract class cannot be instantiated. It must be extended and may or may not contain abstract methods.
🗑
|
||||
show | When a class extends an abstract class, all of the abstract methods must be implemented.
🗑
|
||||
show | An interface is used to define a public interface that a class must have.
🗑
|
||||
show | The keyword implements is used to implement an interface.he keyword implements is used to implement an interface.
🗑
|
||||
show | A class may implement multiple interfaces by using a comma-delimited list.
🗑
|
||||
show | A class that implements an interface must implement all of the methods contained in the interface.
🗑
|
||||
What is encapsulation? | show 🗑
|
||||
show | Access modifiers can be used to restrict access to methods and instance variables.
🗑
|
||||
What does the publivc access modifier do? | show 🗑
|
||||
What does the private access modifier do? | show 🗑
|
||||
What is information hiding? | show 🗑
|
||||
When creating methods, how should the restrictivity of the modifiers be chosen? | show 🗑
|
||||
What is a getter? | show 🗑
|
||||
What is a setter? | show 🗑
|
||||
What conventions are used for getters and setters? | show 🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
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
Normal Size Small Size show me how
Created by:
fd99
Popular Computers sets