0
object oriented programming
may anyone describe what does object-oriented programming mean?
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.
+ 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.
+ 1
guess I have to search it for myself
0
thank you all for your answers & descriptions.
stay safe