Expalin advantages of object-oriented programming
object oriented programing
The object oriented programing is a programming paradigm or programming style that is used, for example, in web development or in app development.
It is similar to human thinking because everything that is used there in the program code is described as an object. How can you understand that? Let's imagine for a moment that a tea kettle is used on a single page or in a digital health app. This tea kettle is thus described as the 'tea kettle' object in the programming. Everything, but also everything that we will use in our single page - kettle, person, motorboat, etc. - is described as an object. Each of these is programmed individually and separately and at the same time separately from each other by the web developer.
First of all, each object in the program code is individually described by special properties. So all kettles are stored as kettle objects, and each kettle has a number of descriptive property values that in turn set it apart from the other kettles. The properties signal the difference, so to speak. The properties of a tea kettle are approximately color: yellow, shape: round, content: 10 liters, owner: Klaus etc. The object properties of the other kettle are the same, but here are the color: green, the shape: square and the owner: Sven.
If objects can trigger something in the program, i.e. if they work, they are called 'methods'. Our 'Tea Kettle' object then implemented the 'Sell' function, for example. In this respect, each object can of course not only have several properties, but also several methods that are defined in a code. The methods are then called, for example, 'Selling', 'Buying', 'Cleaning' etc.
So an object is always a physical thing in a program, with designated properties and methods. The so-called classes, which abstractly instantiate the properties and methods, form the blueprint of the objects. In the object-oriented programming it is possible to inherit these classes, i.e. their object blueprints. One class takes over all the properties and methods of another class, but why? Because it expands the class without changing it. This means, for example, properties of the 'household appliances' class are passed on to the objects 'tea kettle', 'drinking container' and 'refill bottle' without the developer having to repeatedly anchor these properties in each object separately. Contains the class 'household appliances' e.g. For example, the properties “kitchen”, “drinks” and “bar” no longer have to be written down individually for the other (newly acquired) objects.
- Is rainmoney com scam or legit
- What are some bad professor stories
- What are surf pop music
- Why are big companies so bureaucratic
- Makes Pakistan too many doctors
- When did the Ramayana war take place?
- Women should go wrestling and boxing
- How can C2H2 be formed from C2H4Br2?
- What is the movement of the artificial satellite
- What are the characteristics of a bad producer?
- Can the Rhino Party win a majority?
- Hit someone for no reason
- What are the four functions of the myth
- Is sharing good all the time
- How do I backup call logs
- Who is the CEO of Bitcoin
- Is beige and brown neutral
- What kept you in poverty
- What are the trade barriers in Germany
- What are the most anticipated upcoming anime movies
- Why is WordPress' source code so bad
- What is the chemical formula of mephedrone
- What came first, Islam or humanity
- How do I learn Git