首页 > 其他 > 详细

<java基础学习>JAVA 对象和类

时间:2014-02-21 09:09:05      阅读:258      评论:0      收藏:0      [点我收藏+]

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:

<java基础学习>JAVA 对象和类

原文:http://www.cnblogs.com/linuxroot/p/3558351.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!