您的位置:首页 > 编程语言 > Java开发

java面向对象须知的一些基本概念

2013-03-27 00:00 621 查看
Real-world objects contain state and behavior.

A software object's state is stored in fields.

A software object's behavior is exposed through methods.

Hiding internal data from the outside world, and accessing it only through publicly exposed methods is known as data encapsulation.

A blueprint for a software object is called a class.

Common behavior can be defined in a superclass and inherited into a subclass using the extends keyword.

A collection of methods with no implementation is called an interface.

A namespace that organizes classes and interfaces by functionality is called a package.

The term API stands for Application Programming Interface.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  java object