ComputersProgramming

Object-oriented programming

Object-oriented programming is the method closest to our behavior. It serves as a natural continuation of earlier innovations related to the development of programming languages. If we talk about structural programming, then this direction is much more structured than the earlier versions, in addition, it is more abstract, more modular. Previously, attempts were made to abstract and transfer programming elements to the so-called internal level.

Object-oriented programming assumes the use for the development of specialized languages. They are characterized by a triple of basic properties:

- encapsulation, that is, combining records with functions and procedures, as well as manipulating fields of record data, forming a fundamentally new kind of data called an object;

- inheritance, which implies the definition of an object with its subsequent use to build a hierarchy of created objects with the ability to generate a new object related to the hierarchy, and also implying access to the code and information about all the generating objects;

- a polymorphism, that is, the ability to assign a single name to actions, which will then be shared down and up the object hierarchy, with each object in the hierarchy assigned to perform the action in a way that suits him.

Object-oriented programming Delphi provides a full set of programming tools, among which can be distinguished: greater modularity and structuredness, abstractness, built-in reusability. These all characteristics can be attributed to the code, which is more structured, easier to maintain and much more flexible. Very often, object-oriented programming forces us to leave aside the characteristic judgments about programming, which for many years were considered standard. However, when this is already done, this method of development does not seem so complicated, but it seems to be a visual and an excellent tool for solving a multitude of tasks that bring huge troubles to trivial software.

If you set yourself the task, for example, to study object-oriented programming in PHP, then you should drop and forget what you knew about it earlier, starting to study it from scratch. Only in this way you will be able to consider all the subtleties of this approach, to evaluate its convenience and possibilities. Object-oriented programming is not the only way, it is more like a continuum of ideas, oriented toward compiling pure code. The compiler works on slightly different principles, if you compare it with the interpreter, while the speed of its work is much higher. Compilers are aimed at the development of any ready-made software products, rather than solving a limited range of tasks.

Classes

Before the creation of object-oriented programming, in many development languages, the need for extended data types was already maturing , than real and integer numbers, text variables and logical variables. It became difficult to work with whole data sets. It is for this purpose that classes are used in the OOP concept. With such structures it became noticeably more convenient to work, since now for the same type of objects you do not need to write a lot of code lines to get what can be generated automatically. For programming in low-level languages, this method seems very difficult, but at a new stage of development it is quite convenient to use it.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.unansea.com. Theme powered by WordPress.