What Is Object-Oriented?
What Is Object-Oriented?
This problem has been confusing for a long time,
After reading a book,
After writing thousands of lines of code,
I learned many times,
Many times I think I have found the answer,
Just as I'm asking about the answer to love,
The answer to happiness is the same,
Each answer,
I was excited,
But every time it fades down the last time,
Or supplement,
Or overturn,
Or tangle,
Lost in the end.
In this period of time,
I have learned this meaning,
A class contains attributes,
And behavior,
Object-oriented representation for classes,
This is not an interface,
But for everything,
Class, interface, behavior (function (method), attributes, etc,
Objects are an aspect of your view of things,
A vision,
A new kind of flexibility,
Object-oriented is like a mirror,
The ing is not anything else,
Just the way you think,
You think of a class as an object,
Then it has a life,
You can also regard behavior as an object,
Then it has a soul,
Similarly,
You can also regard attributes as objects,
Then it has a soul,
Everything is changeable,
The only thing that remains unchanged is your attitude,
So all the imitation,
No spirituality,
All thoughts have life,
Object,
It's just a pocket,
As long as it is large enough,
You can put everything you want in.