Java Basics Review Notes

Source: Internet
Author: User

OOP: Object-Oriented Programming

Process-oriented programming, focusing on the realization of functional methods

Object-oriented programming that abstracts a substance into a class


How much, the same event occurs on different objects back to produce different results

means that objects of different classes are allowed to respond to the same message. That is, the same message can take many different behaviors depending on the sending object.

There are three prerequisites for a multi-existence:

1, to have inheritance;

2, to have a rewrite;

3. Parent class reference to child class object


Overloaded, the method name is the same, but the parameter type and number are different, and the return value type can be the same or the same.

The return type cannot be used as a distinguishing criterion for overloaded functions;

When invoking a method, it is polymorphic to decide which method to use by passing to them the number of different parameters and the type of parameter.

Override, if you define a method in a subclass that has the same name and parameters as its parent, we say that the method is overridden.

Method overrides are also called method overrides. Method has the same method name, return type, and parameter table


Java Basics Review Notes

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.