Which of the following are class methods and which are object methods? How can you tell which are which?
Math.abs(-3);
soundObj.play();
FileChooser.pickAFile();
pictureObj.show();
ColorChooser.pickAColor();
turtle1.turnLeft();
Class method since Math starts with an uppercase letter.
Object method since soundObj starts with a lowercase letter.
Class method since FileChooser starts with an uppercase letter.
Object method since pictureObj starts with a lower- case letter.
Class method since ColorChooser starts with an uppercase letter.
Object method since turtle1 starts with a lowercase letter.
You might also like to view...
Given the ShoeType structure type definition. Write a function for the declaration (prototype).
``` struct ShoeType { char style; double price; }; void readShoeRecord(ShoeType& Item); // Prompts for data and fills ShoeType argument members ```
Which of the following state transitions is not possible?
a) blocked to running b) ready to running c) blocked to ready d) running to blocked
It's a smart idea to save repetitive steps as a(n) ____, thereby avoiding time consuming repetition of efforts.
A. agenda B. action C. list item D. story
When a line of text contains revisions, the left margin displays a:
a. vertical change bar b. horizontal change bar c. balloon