Which of the following are class methods and which are object methods? How can you tell which are which?
1. Math.abs(-3)
2. soundObj.play()
3. FileChooser.pickAFile()
4. pictureObj.show()
5. ColorChooser.pickAColor()
6. turtle1.turnLeft()
1. Class method since Math starts with an uppercase letter.
2. Object method since soundObj starts with a lowercase letter.
3. Class method since FileChooser starts with an uppercase letter.
4. Object method since pictureObj starts with a lowercase letter.
5. Class method since ColorChooser starts with an uppercase letter.
6. Object method since turtle1 starts with a lowercase letter.
You might also like to view...
A(n) ________ is any action that can be detected by a program or computer system, such as clicking a button or closing an object
A) event B) macro C) value D) object
Name three UGUI Components you can use to build your interfaces
What will be an ideal response?