Object-oriented fan ---- sleepwalking of thoughts (1)

Source: Internet
Author: User

Guest string: hacker form artifact

Those things we 've gone through: Database things

Recommendation: Teach you how to create a keyword matching project (search engine) ---- Day 1

Latest: Hands-on instructions for keyword matching projects (search engines)-18th days

Discussion: Explore Server Load balancer

 

Text: Object-Oriented Knowledge-New Knowledge

I am a newbie, But I have excellent Thinking Ability mixed into the current company. My basic is general, and the pressure in every job is getting bigger and bigger, a little adaptable, fortunately, the legendary God-class person recently wanted to train us with basic object-oriented knowledge.


I still remember that the god-class person joked: You are so tired of watching my lectures, so you can also give a bottle of water.


At that time, we were happy with the flowers, because the most indispensable thing in the company was water.


Of course, we also understand his painstaking efforts and willingness to treat us well. He may simply complain that the content of our training is too boring, because these are very advanced knowledge for us, it is not worth mentioning for him!

 

Okay, let's get started with things.
When the god-class character parses the class and says that all people have eyes, hands, and mouth.

The audience like me said: This is the attribute of the class.


This problem suddenly emerged in my head?
Like foreign eyes, he is blue, obviously different from Chinese colors. Why?


My meditation may have been seen by the god-class person. At that time, he looked at me and I was very nervous.
Then he asked me in a joke: What are you thinking about? God games.
But I was very careful, and I was wondering whether to talk about it.


However, I was nervous enough to talk about the problem,I thought they would laugh at me and disagree.

"I'm thinking ...... Is the eye also a class ." I tried very hard to get these words out.

At that time, the god-class person answered this question. You asked this question very well. First, I do not deny that my eyes are not class.
At that time, I was happy to spend some time and put down the burden of my heart. It was very easy and comfortable.

 

At that time, the god-class character came up with such a sentence, and we were stunned.
Everything in the world can be represented by classes.

 

Then he continued to say that in the gaming industry, the eyes are big and small, and the colors are different.
The eyes are indispensable in describing emotions, such as cute, sad, and sad.
We can implement it as a class.

 

Then he got another problem, which could have been solved by 4-5 classes in a system. Some people want to demonstrate that he has a high Object-Oriented Knowledge, I had to develop the system by setting up more than 20 classes. At last, this person was overwhelmed by a large amount of complaints from other colleagues, so he could not afford to leave the system.

 

The facts tell us that it is better not to have many classes.

 

When appropriate, you can extend attributes to classes. However, these experiences have to be accumulated over time through practice. Therefore, we recommend that you participate in projects and expand your horizons as much as possible.


At that time, I came up with a problem. The legendary God-class character really liked you to have different ideas, so that he could give lectures to better reflect his height and level. Don't be stingy with your questions, put it up when appropriate.

 

Although I have a concept through this explanation, there is still a deep discussion here, that isPractice.

 

I really hope I can move closer like this God-class person.

 

Object-oriented fan ---- sleepwalking of thoughts (1)

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.