01 – Real-world objects contain? state and behavior
02- A software object’s state is stored in? fields
03- A software object’s behavior is exposed through? methods
04- Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data? encapsulation
05- A blueprint for a software object is called? a class
06- Common behavior can be defined in a superclass and inherited into a subclass using the extends keyword.
07- A collection of methods with no implementation is called? an interface.
08- A namespace that organizes classes and interfaces by functionality is called? a package
09- A term API stands for Application Programming Interface.
Endeavor: Create new classes for each real-world object that you observed next to you.
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?
There you are! Congratulations!
Bear in mind that Want is Might. Just God is Power!.
http://konlinux.com – fundada em 2002 – Knowledge Management.