Interactive Computer Science Tutoring

Learn programming concepts interactively

AHA Schools Logo

OOP Concepts Challenge

Test your knowledge of Object-Oriented Programming concepts with these questions and exercises.

Knowledge Check: Fill in the Blanks
Progress0 / 12 Correct
1

Real-world objects contain and .

2

A software object's state is stored in .

3

A software object's behavior is exposed through .

4

Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data .

5

A blueprint for a software object is called a .

6

Common behavior can be defined in a and inherited into a using the keyword.

7

A collection of methods with no implementation is called an .

8

A namespace that organizes classes and interfaces by functionality is called a .

9

The term API stands for ?

Hands-on Exercises

Create Your Own Classes

Create new classes for each real-world object that you observed at the beginning of this trail. Refer to the Bicycle class if you forget the required syntax.

Implement an Interface

For each new class that you've created above, create an interface that defines its behavior, then require your class to implement it. Omit one or two methods and try compiling. What does the error look like?