Terminology Flashcards
Class
- Class is a blueprint /template to describe object.
- Class describe characteristic, and behavior of object allow representation of the real-world object in coding and improve the readability of code
- Class is one way of Java implement type or class is a type. The values of the type are the object and the methods of the class operate on the object
- Class always contains unique characteristics to particular object and normally with different value.
Object
- Object is normally referring to an abstraction of real-world entity and is has attributed and behavior.
- Object is an instance of class that have state or values that represent a instantiation of the class
Constructor
A special method will be call when constructing the object to initialize the object state
Attribute
Attribute is referring to the characteristic or property of an object
Method
- Method encapsulate a set of instructions that are related to achieve a single task or goal.
- Method is a collection of statements that group together to achieve a goal or perform a task.
Parameter
A parameter is a special kind of variable, used in a subroutine/procedure to refer to one of the pieces of data provided as input to the subroutine/procedure.
Argument
The arguments are the values supplied to the subroutine/procedure when it is called.
Behaviour
Behaviour is about task and actions can be performed by the object.
Characteristic
Characteristic is the property, quality, or state of the object that described using values.
Variable
Variable is an identifier in the program that store a value/reference that could be change.
Constant variable
Variable where its value cannot be change once being assign.
Instance variable
- Variable declare as the property of a class that represents the state of an object.
- Instance variable is belong to particular instance object that represent the state of the object.
Instance method
Instance method is the subroutine of an object, declared in a class.
- Belong to instance object.
Static variable/ Class variable
Variable declare as property of class that shared among instances of the class and have only one copy throughout the program.
Predefined library
The predefined libraries contain classes, methods that are pre-written by respective programmers to provide common solutions to problem face in application development. It has higher quality and access by everyone.
User defined library
User defined library is maintained by individuals or company to solve specify problem domain. the quality depends on the programmer and used privately.
Type
Type is a set of data values and the operations that can be performed on them.
Inheritance
- Inheritance allow generalization and specialization to eliminate code redundancy and improve coding maintenance.
- Inheritance is a technique to allows a class to contain some features from the other class without replication to encourage code reuse. Or it refers to the ability of one class (child class) to inherit/obtain the identical functionality of another class (super class), and then add new functionality of its own.
Generalization
Generalization is the process of avoiding code and data duplication among several classes by creating a super class to those classes and moving the duplicate code and data up into that superclass, which is commonly abstract. The code is going upward in the class hierachy.
Specialization
Specialization is the process of extending an existing class by adding new features is called using inheritance for specialization. The code is moving downward in the class hierarchy.
Inheritance for specialization
The process of extending an existing class by adding new features is called using inheritance for specialization.
Singleton Object
An object that has only one instance in the entire program and it is defined using object keyword.