java--Object-oriented programming (oriented object programme), memory

Source: Internet
Author: User

Three basic features of class, object and object-oriented programming: inheritance, encapsulation, polymorphism.

Classes are also cited by objects. The three major characteristics are also cited by the object.

Organizing code, encapsulating data

Organize your code through objects and encapsulate the data with objects.

Complicated procedures can be seen.

Object-oriented is called through methods. Write 28 hours of code a day, you are not enough. They are very difficult to get started. Need to look through the whole process. Difficult to get started.

There was a software crisis in the 80 's. The degree of difficulty is increased geometrically.

C language inside has very good thought , the structure body . you can put the car-related variables here. Manage my variables in a structured way very very convenient, C-language Bell Labs, they just want to problem, first divergence, second depth. Adopt a structure-like concept.

So C + + appeared. Organize our code in a class of units

c is to organize our code in a way.

The benefits of object-oriented are particularly great when the program is very large.

Defined:

Variable types other than primitive types in the Java language are referred to as reference types .

Objects in Java are manipulated by reference to reference .

Properties of the class

java--Object-oriented programming (oriented object programme), memory

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.