Which of the following methods returns a value?
A) Method changeName(String lName, String fName)
LastName = lName
FirstName = fName
Display "The name has been changed to " + firstName + " " + lastName
End Method
B) Method displayInfo()
Display "Account #: " + acctNumber
Display "Account type: " + acctType
Display "Owner name: " + lastName + ", " + firstName
Display "Current balance: " + acctBal
End Method
C) Method withdraw(Numeric amt)
AcctBal = acctBal - amt
Display "The new balance is: $" + acctBal
End Method
D) Method inquire()
Return acctBal
End Method
Correct Answer:
Verified
Q32: A(n) _ is a UML diagram describing
Q33: A(n) _ has a simple format, with
Q34: Which of the following functions correctly returns
Q35: Function definitions are placed in the _
Q36: You create an object with the keyword
Q38: Which of the following methods correctly withdraws
Q39: The keywords Public and Private are used
Q40: In JavaScript, the _ object refers to
Q41: In JavaScript, the _ object is instantiated
Q42: Properties and methods belonging to each object
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents