Java Basics (i) Object-oriented

Source: Internet
Author: User

Objects are entities in which things exist, such as human beings, computers, etc., while objects are divided into two parts, both dynamic and static

Class: Is the same thing collectively, if a thing in the world is abstracted into objects, the class is the general term of such objects, a class of things that have the same characteristics and behaviors are classes.

A class is a vector that encapsulates the properties and behavior of an object, and conversely, a class of entities that have the same properties and behavior are called classes.

Object-oriented features:

Encapsulation: Object-oriented core thinking, the properties and behavior of the object is encapsulated, and the object's properties and behavior is encapsulated in the carrier is the class,

Inheritance: Classes have the same relationship as classes, and there are many relationships between the two classes, and inheritance is one of the associations.

Polymorphism: A feature that is applied to a parent class object is polymorphic.

Java Basics (i) Object-oriented

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.