正在加载图片...
Messages and methods r To instruct a class or an object to perform a task, we send a message to it You can send a message only to the classes and objects the at understand the message you sent to them r a class or an object must possess a matching method to be able to handle the received message ra method defined for a class is called a class method and a method defined for an object is called an instance method r A value we pass to an object when sending a message is called an argument of the message C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 1-7© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 1 - 7 Messages and Methods To instruct a class or an object to perform a task, we send a message to it. You can send a message only to the classes and objects that understand the message you sent to them. A class or an object must possess a matching method to be able to handle the received message. A method defined for a class is called a class method, and a method defined for an object is called an instance method. A value we pass to an object when sending a message is called an argument of the message
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有