Java Day03 Object-oriented programming

Source: Internet
Author: User

1. Object-oriented

Object-oriented refers to a programming generic, and also a method of program development.

2. Class

A class is an abstract concept in which a class contains data and manipulation of the data.

An abstraction of an object with the same attributes (data elements) and behaviors (functions) is the class. A class is an object's abstraction, an object is a materialized class, or an instance of a class is an object, and a class is actually a data type.

The class contains two parts:

Data, which is called a property in a class

For example, a person is an abstract concept, people have a name, gender, height and other properties, as well as eating, running and other manipulation of the properties of the method.

3. Objects

An object is a specific concept that is a concrete representation of a class. For example, a person is a class, Zhang San, Harry and other specific people is the object.

  

Java Day03 Object-oriented programming

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.