click below
click below
Normal Size Small Size show me how
Java: Concepts
Object-Oriented Programming Concepts
Question | Answer |
---|---|
What is an Object? | An object is a software bundle of related state and behavior. Software objects are often used to model the real-world objects that you find in everyday life. |
What is a Class? | A class is a blueprint or prototype from which objects are created. |
What is Inheritance? | Inheritance provides a powerful and natural mechanism for organizing and structuring your software. |
What is an Interface? | An interface is a contract between a class and the outside world. When a class implements an interface, it promises to provide the behavior published by that interface. |
What is a Package? | A package is a namespace for organizing classes and interfaces in a logical manner. Placing your code into packages makes large software projects easier to manage. |
Real-world objects contain___and___. | state_____behavior. |
A software object's state is stored in___. | fields. |
A software object's behavior is exposed through___. | methods. |
Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data___. | encapsulation. |
A blueprint for a software object is called a ____. | class. |
Common behavior can be defined in a___and inherited into a___using the___keyword. | superclass, subclass, extends. |
A collection of methods with no implementation is called an____. | interface. |
A namespace that organizes classes and interfaces by functionality is called a____. | package. |
The term API stands for____. | Application Programming Interface. |