java-Object-oriented

Source: Internet
Author: User
  1. The concept of objects
  2. What is object-oriented
  3. Class
  4. What is an object's properties
  5. What is a method of an object
  6. Class-to-object relationships/differences
3. Class

A class is a mold that determines the characteristics (attributes) and behavior (methods) that an object will have;

Characteristics of the class:

  • Class is the type of object;
  • A collection of groups of objects with the same properties and methods;
4. Properties of an Object

The specific characteristics that the object possesses;

Each object has its own specific value;

5. Methods of the object

Actions that an object can perform

6. Classes and objects

A class is an abstract concept, just a template that is used to describe an object's information;

object is a concrete entity, which obtains specific object information according to the class;

For example:

A mobile phone is an object;

Phone class: Includes properties and methods

Properties are CPU, memory, screen, etc.

Methods have to call, send text messages and so on;

java-Object-oriented

Related Article

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.