zoukankan      html  css  js  c++  java
  • <java基础学习>JAVA 对象和类

    Java is an Object-Oriented Language. As a language that has the Object Oriented feature, Java supports the following fundamental concepts:

    • Polymorphism (多态性)
    • Inheritance(继承)
    • Encapsulation (封装)
    • Abstraction (抽象)
    • Classes (类)
    • Objects (对象)
    • Instance (实例)
    • Method (方法)
    • Message Parsing (消息解析)

    In this chapter, we will look into the concepts Classes and Objects.

    • Object - Objects have states(状态) and behaviors(行为). Example: A dog has states - color, name, breed as well as behaviors -wagging, barking, eating. An object is an instance of a class.

    • Class - A class can be defined as a template/blue print(蓝图) that describes(描述) the behaviors/states that object of its type support.

    Objects in Java:

  • 相关阅读:
    hutool工具
    lombok
    混入
    postMan
    jsr303常用注解
    网页兼容性
    C/C++ 一点笔记(1)
    VS2010 灵活运用快捷操作功能(新手必看)
    HTML中meta作用
    C/C++ 一点笔记(2)
  • 原文地址:https://www.cnblogs.com/linuxroot/p/3558351.html
Copyright © 2011-2022 走看看