Give a brief answer to each of the following questions:
a) Why does this text discuss structured programming in addition to object-oriented programming?
b) What kinds of messages do people send to one another?
c) Objects send messages to one another across well-defined interfaces. What interfaces does a car radio (object) present to its user (a person object)?
a) Objects are composed in part of structured program pieces.
b) People send messages through body language, speech, writings, e-mail, telephones, etc.
c) Dials and buttons that allow the user to select a station, adjust the volume, adjust bass and treble, play a CD or tape, etc.
You might also like to view...
Abstract classes:
a. Contain at most one pure virtual function. b. Can have objects instantiated from them if the proper permissions are set. c. Cannot have abstract derived classes. d. Are defined, but the programmer never intends to instantiate any objects from them.
Match the following common file extensions with their file type:
I. .docx II. .mp4 III. .zip IV. .eps V. .exe A. Compressible video and audio file B. Microsoft Word document C. Uncompressed image file D. Compressed file E. Executable files that run a program
public static int func2(int m, int n){ if (n == 0) return 0; else return m + func2(m, n - 1);}Which of the following statements about the code in the accompanying is always true?
A. func2(m, n) = func2(n, m) for m >= 0 B. func2(m, n) = m * n for n >= 0 C. func2(m, n) = m + n for n >= 0 D. func2(m, n) = n * m for m >= 0
Discretionary access control is an approach whereby the organization specifies use of resources based on the assignment of data classification schemes to resources and clearance levels to users.
Answer the following statement true (T) or false (F)