正在加载图片...
Classes and objects r Object-oriented programs use objects r An object is a thing both tangible and intangible Account, Vehicle, Employee, eto r To create an object inside the computer program, we must provide a definition for objects--how they behave and what kinds of information they maintain -called a class. r An object is called an instance of a class C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 1-3© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 1 - 3 Classes and Objects Object-oriented programs use objects. An object is a thing, both tangible and intangible. Account, Vehicle, Employee, etc. To create an object inside the computer program, we must provide a definition for objects—how they behave and what kinds of information they maintain —called a class. An object is called an instance of a class
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有