Play on Java Learning

Source: Internet
Author: User
The first piece of


Omencathay Notes


1. What is Java


2. The
of object-oriented core thought

3. Java features


  


1. What is Java: not an object-oriented programming language? So what is the object? Objects are everything that exists in the real world, the earth pulls, the moon, the stars, the house, the car, but the light object is not, all things have to have a connection, you have to tell these objects what to do, such as your beloved girl let you pick the stars, take the moon, what do you do, Can't be silly waiting for someone to run away, first, find a basin, this is the container, and then decorate the water, take advantage of the moon star many nights, to get your beloved girl before, tell her, star Moon I gave you get, you can go with me #¥%¥, rely on, Java seems to have nothing to do with these things, don't worry, Wait until you can in the computer, the stars, weaving the moon, you will think, I k, this is not Java?


2. The core idea of object-oriented:


1. Just said, everything can be regarded as an object, remember that only the world's existence of all things are abstract as a computer can express the object of realization, you can transform the decay of magic, this is the Java nine Yin canon of the general principles, only deep understanding of this concept, you may be able to cultivate to the highest realm, What is the highest state: one day you find you can not learn, hey, this is the highest state.


2. Everything is not isolated, but connected, only through the message between the objects, can be completed together you want to complete


3. But the object is not unified, remember to classify Ah, don't make a mistake, then John wife to get Dick House inside, can have you see


4. Each object is certainly not nothingness, to occupy a little space, of course, on the computer is the storage space


5. And when you send a message to the object, see if he can accept your type, not the donkey's lip, not the Ma Yi
.

(note: To be successful, brandished from the palace, half a dim light, hard work three years, must have a big)


3. Java features: Mainly about these three: encapsulation, inheritance, polymorphism


Encapsulation: Object encapsulation is a learning, how to package a good object, sensed inexpressible, #¥%¥# ... don't throw me rotten eggs, boss!


Inheritance: The vertical development of the object, how much you need, I can produce the same object


Polymorphism: The horizontal union of the object, no matter what type you come in, I can handle it











Note: A very profound understanding of the idea of a language, will make you in the future adventure away, Yimapingchuan, please deeply understand the object-oriented programming, otherwise the learning process of the code, you will forget what to learn what to forget what, it is better not to learn it











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.