Java Object-oriented

Source: Internet
Author: User

Java object-oriented has 4 characteristics:

1 abstraction

Extracts the generality of an object, constituting an abstract class or interface, overriding an abstract method by an implementation class that inherits the class or interface of an abstract class.

2 inheritance

Subclasses inherit the parent class (the superclass, the base class), indicating that the subclass is a special parent class that has properties or methods that the parent class does not have. Super is a reference to the closest parent class object.

3 Package

Bind properties and methods to hide the concrete implementation of the class, and improve the security of the object.

4 polymorphic

Polymorphism refers to a method that invokes an object with different behavior. It is divided into compile-time polymorphism and run-time polymorphism, and the compile-time polymorphism is implemented by method overloading, and runtime polymorphism is implemented by means of method rewriting.

  

Resources

Summary of abstract learning in Java

Java Inheritance Knowledge Summary

Summary of usage of this and super in Java

A detailed description of the Java package

Java-polymorphism, Method overloading

Method overloading Issues in Java

The difference between overloading and overriding in Java

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