List some attributes and operations that might be defined for a class called PictureFrame that represents a picture frame.

What will be an ideal response?


Attributes could include: height, width, empty (boolean)
Operations could include: getHeight, setHeight, getWidth, setWidth, isEmpty, fill

Computer Science & Information Technology

You might also like to view...

Which of the following will set the variable num to the value 8?

a. ``` num = pow(2, 3); ``` b. ``` num = sqrt(64); ``` c. ``` num = Math.pow(64, 2); ``` d. ``` num = Math.sqrt(64); ```

Computer Science & Information Technology

________ charts are used to show how different categories relate to the whole

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which technology is most likely used for a home server whose primary purpose is to run applications for a home-based business?

A) Privacy display screen B) NAS C) Case enclosure D) RAID 5

Computer Science & Information Technology

Which of the following statements is false?

Consider the code: public void SetName(string accountName) { name = accountName; // store the account name a) The first line of each method declaration is the method header. b) The method’s return type (which appears to the left of the method’s name) specifies the type of data the method returns to its caller after performing its task. c) The return type void indicates that when SetName completes its task, it does not return any information to its calling method. d) A method requires one or more parameters that represent the data it needs to performits task.

Computer Science & Information Technology