OOP(object-oriented programming):
object: a repository of data;
class: type of object.
method: procedure of function that operates on objects or class.
Inheritance: A class may inherit properties from a more general class.
Polymorphism: one method works on several class, even if the class need different implementations.
object-oriented: each object knows its own class & methods.
Java
variable: you must
declare them and their
type.
eg: int x; <——java does 2 things:①allocate memory to store an integer, type int. ②names variable “x".
variable also used to
reference objects.