What is object-oriented

Source: Internet
Author: User

What is object-oriented.

This question puzzled me for a long time,

In reading a book that has a

After writing thousands of lines of code,

I've learned so many times,

Many times I think I've found the answer,

Just like I'm asking the answer to love,

The answer to happiness is the same,

Every time the answer,

To get excited,

But every time it's going to fade,

or supplement,

or overturned,

or entanglement,

Finally lost in the road.

And in this period of time,

I realized the meaning of this,

A class contains properties,

and Behavior,

Object-oriented representation for classes,

Nor is it for interfaces,

But for everything,

Classes, interfaces, behaviors (functions (methods)), properties, etc.,

object is one aspect of things that you look at,

A vision,

An epiphany,

Object-oriented is like a mirror,

It's not something that's mapped out.

Just the way you think,

You think of a class as an object,

Then it has a life,

You can also think of behavior as an object,

Then it has a soul,


You can also think of attributes as objects,

Then it has a soul,

Everything is changeable,

The only thing that's not changed is your attitude,

So all the imitations,

There's no spirituality,

All thoughts have life,


But it's a pocket,

As long as it's big enough,

You can put down everything you want to put in.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.