Algorithm (4th edition) -1.2.2 abstract data Type example

Source: Internet
Author: User

Summary: As the name implies.

Focus:

1. Geometric objects: A Natural example of object-oriented programming is designing data types for geometric objects.

Point2d.java is a data type for points in the plane.

Interval1d.java is a data type for one-dimensional intervals.

Interval2d.java is a data type for two-dimensional intervals.

Interested to study!

2. The Java language provides special support for string initialization and connection: We can create and initialize a string directly using a string literal instead of a constructor, and you can use the + operator instead of the concat () method.

// You do not need to use string a = new String ("The Time");

Algorithm (4th edition) -1.2.2 abstract data Type example

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.