1. Trang chủ
  2. » Công Nghệ Thông Tin

Tài liệu Chapter 3 Quick Reference ppt

1 285 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Nội dung

Chapter 3 Quick Reference To Do this Declare a method Write the method inside a class. For example: int addValues(int leftHandSide, int rightHandSide) { } Return a value from inside a method Write a return statement inside the method. For example: return leftHandSide + rightHandSide; Return from a method before the end of the method Write a return statement inside the method. For example: return; Call a method Write the name of the method, together with any arguments between parentheses. For example: addValues(39, 3); Use the Generate Method Stub Wizard Highlight a call to the method, and then click Generate Method Stub on the IntelliSense menu. Display the Debug toolbar On the View menu, point to Toolbars, and then click Debug. Step into a method On the Debug toolbar, click Step Into. or On the Debug menu, click Step Into. Step out of a method On the Debug toolbar, click Step Out. or On the Debug menu, click Step Out. . Chapter 3 Quick Reference To Do this Declare a method Write the method inside a class together with any arguments between parentheses. For example: addValues (39 , 3) ; Use the Generate Method Stub Wizard Highlight a call to the method,

Ngày đăng: 21/01/2014, 15:20

TỪ KHÓA LIÊN QUAN