What is Object Oriented Programming? And how to Create System with Object Oriented? If you have been or are still engaged in a job related to programming, of course you have heard the term "component".
What is OOP, Function and Subroutine?
For some people, especially those who are lay about the programming, maybe the term is not too well known. What exactly is the "component" and how to make it?
Thinking of component making begins when the program is created. Often several routine jobs that have the same function used repeatedly, so that made what is called a subroutine. Maybe this time the subroutine is not so popular anymore, and what we often hear today is "function".
Conceptually the two are not much different, i.e. create a sequence of programs that can do the same job, so that when you want the job you just call just that function.
However, the problem is that this function only consists of commands only, so functionality can usually only be used within the same application program. To be used on other applications there needs to be a bit of adjustment.
With object-based programming (Object Oriented Programming) making components that can be used in one application and the other can be done.
In object-based programming (OOP) known terms encapsulation and information hiding. Therefore OOP uses the concept of class, then in one class, data and operation are made into one.
Since each class has its own data and operations, the inter-Class dependency becomes very low. Unlike the case with functions, where data and programs are not in a closed package, the dependency of the function on the data will be very large.
From this encapsulation information hiding occurs, meaning that when a class is given a command to perform an operation, the class will process it within the class itself, and will bring the results of its operation.
Therefore, in determining a class the class name, attribute, and operation must exist. Not all programming languages can be called OOP. OOP programming languages are VB.net, Java, C #, C ++, Simula, PHP, while VB 6.0 is not included in the OOP category.
Learn more about recognizing object-based programming, please visit the " How to Object-Based Programming Tutorial" tutorial .
How to make components?
Basically the component consists of one or more classes by designing the system using the same approach with the programming of OO (usually called OOAD).
The development of OOAD adopts many of the ER diagrams, and some ways in the way of structured design.
Quite a lot of the originators of this OOAD. Each of these initiators has a different way of depiction. This is often the main reason for the difficulty of studying OOAD.
Grady Booch, James Rum Baugh, and Ivar Jacobson are three people who have long been in the field OOAD. They each have a way of designing with OO. They also initiated the so-called UML (Unified Modeling Language).
Thus, whatever method they do to design OO, its depiction is the same as UML. UML is now accepted by many organizations and its use is increasingly widespread. Even now VISIO has also implemented this UML facility.
Hopefully this article from Mr. Indra can help the reader in understanding what is Object Oriented Programming (OOP), making it easier for how to create a system with object oriented.
0 Komentar