+ 6
Can you explane me what is the object oriented by example, please?
4 Antworten
+ 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.
+ 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.
+ 5
In summary, it mwans that all actions are performed on an object.
For instance, Python is an object oriented language
0
Thank You all ...