Java object-Oriented---object-oriented

Source: Internet
Author: User

The evolution of the program: process-oriented and object oriented

Process-oriented: Do not think how to do, while doing while watching

Object oriented: Think about what to do first, then do it again.

Modifiers (access rights)

access Level

access control modifier

homogeneous

same package

subclass

< Span style= "font-family: Song body; Font-size:14px "> different packages

public

√

√

√

√

protected

√

√

√

--

default

√

√

--

< strong>--

Private

Private

√

--

--

--

Object-oriented features

Encapsulation of

Not visible to external

Inherited

Features of the extended class

Polymorphic

Method overloads (the parent class has this method, the subclass overloads this method.) That is, the method name, return type, parameter type, and number are the same for the subclass and the parent class, and the polymorphism of the object

Java object-Oriented---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.