2 question about (VISUAL BASIC)

2007-10-31 8:25 pm
Q1) Overloading:
a. Means running different methods but with the same parameters.
b. Means running the same methods with the same parameters
c. Means running the same methods but with the different parameters
d. Means running different methods with the different parameters

Q2)An overloaded method:
a. can catch different types of exceptions.
b. is automatically called as the form loads.
c. may be called with different argument list.
d. can return different data types.

回答 (1)

2007-10-31 8:43 pm
✔ 最佳答案
Q1) Overloading:

c. Means running the same methods but with the different parameters


Q2)An overloaded method:

c. may be called with different argument list


overloading 係同一個method名but收唔同parameters
e.g.

getStudentName(string class, int classNum)
and
getStudentName(string studentUniqueID)


收錄日期: 2021-04-24 00:30:25
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20071031000051KK01028

檢視 Wayback Machine 備份