0

object oriented programming

may anyone describe what does object-oriented programming mean?

7th Aug 2020, 9:51 AM
Kv2
Kv2 - avatar
4 Antworten
+ 2
Object oriented programming is a programming paradigm where data structures are represented as "objects". This objects possess "attributes" that are simply variables that hold information needed by the object. The object may possess "methods" which are functions that can only be called on the object directly to change or retrieve state(attributes) of the object or to call methods on friend objects. Object oriented programming may also refer to the various design patterns specific to or commonly adopted by object oriented programming. These design patterns include inheritance, encapsulation, polymorphism, proxy, abstraction etc. The best way to learn OOP is by learning a typical object-oriented language. Java might be a good choice for beginners.
7th Aug 2020, 10:40 AM
Ore
Ore - avatar
+ 2
Objects are everywhere around us. These objects have some 'attribute'(value) and 'method'(function). Let's imagine a car. Painting colour, tyre name, max speed etc. are some 'attribute' of the car. Starting,stopping the car and 'increasing speed' are some functions(method) of the car. Now we can make a blueprint which contain the 'attribute'(value) and 'function'(method) of that car. This is called 'Class' in OOP language. Now we can make thousands of ''objects'' using this blueprint(say 'class') only changing the value of 'attributes' and calling these 'functions' again and again. This is mainly the object-oriented programming by which we can deal with objects easily. Hope, you have understood.
7th Aug 2020, 10:54 AM
1AmN0t0k@eArth
+ 1
guess I have to search it for myself
7th Aug 2020, 10:11 AM
Kv2
Kv2 - avatar
0
thank you all for your answers & descriptions. stay safe
7th Aug 2020, 12:10 PM
Kv2
Kv2 - avatar