Can you explane me what is the object oriented by example, please? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 6

Can you explane me what is the object oriented by example, please?

29th May 2017, 8:01 PM
Omid Abbaspour
Omid Abbaspour - avatar
4 Respostas
+ 6
It could be thought of sort of like the classification system we use for lifeforms We have a type of creature. Mammal, Reptile. Of which there can be many types. Rabbit, snake etc which again can have many types. Hare, Cobra etc.. Basically it is a way to represent information as objects rather than actions.
30th May 2017, 12:45 AM
jay
jay - avatar
+ 5
its like a collection of methode and and attribute of some object in real life ir abstract. for example : we can calculate the traffic by making class vehicle. then make new class that inherite some methode from vehicle like velocity, fuel consumtion etc. the new class are car, train, motorcycle, etc. each class can have unique atribute like plate number, and have unique method too like train has average number of passanger on board every day. and those class interacting on the road like when train passing, car and motorcycle have to stop in red light.
29th May 2017, 8:26 PM
Setiawan Next
Setiawan Next - avatar
+ 5
In summary, it mwans that all actions are performed on an object. For instance, Python is an object oriented language
30th May 2017, 12:56 AM
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬
šŸ‘‘ Prometheus šŸ‡øšŸ‡¬ - avatar
0
Thank You all ...
17th Jun 2017, 8:15 PM
Omid Abbaspour
Omid Abbaspour - avatar