Java Core Technology Note five OOP

Source: Internet
Author: User

The core of Java is Object-oriented (fully object-oriented)

Object-Oriented Programming

You have to be clear about the three main features of the object

1. Behavior of the object

2. The state of the object

3. Object identification

In addition, it is necessary to understand the relationship between objects more common relationships have

Dependency Inheritance Aggregation

In Java programs, programmers should minimize the number of interdependent classes to reduce the coupling between classes.

Not all classes in Java are object-oriented features such as the Math class date class

There is an important difference between an object and an object variable

Date deadline;

This defines an object variable deadline It can refer to an object of date type But the variable deadline is not an object that is not used by the constructor to apply any date method to this variable

Java Core Technology Note five OOP

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.