Object-oriented programming consists of several classes :
- Class is a collection of definitions of data and functions in a unit for a particular purpose.
- Object to wrap the data and functions together as a unit in a computer program; object is the basis of modularity and structure in an object-oriented computer program.
- Abstraction is the ability of a program to pass information processing aspects of it, namely the ability to focus on the core. Every object in the system serve as a model of the "actors" who can do abstract work, reports and changes in circumstances, and communicate with other objects in the system, without disclosing how the excess is applied. Processes, functions or methods can also be made abstract.
- Ensuring users encapsulation for an object can not change the state of an object in a way that is not feasible; only method in which the object is given permission to access the situation. Each object access interface that mentions how other objects can interact with it. Other objects will not know and depend on the representation of the object.
- Inheritas to Organize polymorphism and encapsulation by allowing objects to be defined and created a special type of object already exists - these objects can share (and expand) their behavior without re-touching to implement such behavior (object-based languages do not always have inheritas).
The main focus on the functions and procedures that operate on the data, Fokus functions and procedures that operate on the data Big, Program program is divided into small units called functions, Data and functions are treated as separate entities, Data freely move around the system from one other function. The following design, Program "Top Down Approach". fokus the data being operated and do not function or procedure, Programs divided into what are called objects, Data and joint function are treated as separate entities, Data hidden and can not be accessed by external functions, The following design, Program "Bottom Up Approach".
Tidak ada komentar:
Posting Komentar