What are the two characteristics of an Object
State, Behaviour
What is State
Fields/Variables
What is Behaviour
Methods/Functions. Methods operate on an object’s internal state and serve as the primary mechanism for object-to-object communication
What is Data Encapsulation
Hiding internal state and requiring all interaction to be performed through an object’s methods is known as data encapsulation
Why use Objects?
What is a class?
A class is the blueprint from which individual objects are created.
What is Inheritance
Object-oriented programming allows classes to inherit commonly used state and behaviour from other classes.
What is superclass and subclass?
In the Java programming language, each class is allowed to have one direct superclass, and each superclass has the potential for an unlimited number of subclasses:
What is the syntax of creating a subclass?
subclassEx EXTENDS superclassEx
What is an Interface
An interface is a group of related methods with empty bodies.
What is the syntax to use an Interface?
classEx IMPLEMENTS interfaceEx
What is a Package?
A package is a namespace that organises a set of related classes and interfaces.
What does API stand for?
“Application Programming Interface”