The basic features of Java object-oriented

Source: Internet
Author: User

Thoughtinshare Source: Http://www.cnblogs.com/thoughtInShare Welcome reprint, Please also keep this statement. Thank you!

The basic idea of 1,java design is to use class, object, inheritance, encapsulation, message and so on to program programming;

2,class defining =field (state data) +method (behavior)

3, object-oriented three basic features, encapsulation (encapsulation), Inheritance (inheritance), polymorphism (polymorphism);

(1) encapsulation, refers to the object will realize the details of hiding, through the behavior method to expose the function of the object;

(2) Inheritance means that subclasses can obtain the behavior and methods of the parent class by inheriting, in order to realize the reuse of the class;

(3) polymorphic, the same type of object in the execution of the same method, may show a variety of behavioral characteristics;

4, in Java design, in addition to 8 basic data types, everything is an object;

5, the materialization of the class is the object, the abstraction of the object is the class;

The basic features of 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.