1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Savatey [412]
3 years ago
15

Which of the following statements is false? a. Classes (and their objects) encapsulate, i.e., encase, their attributes and metho

ds. b. A class’s (and its object’s) attributes and methods are intimately related. c. For objects to communicate effectively with one another, each must know how the other object is implemented.d. Information hiding is crucial to good software engineering.
Computers and Technology
1 answer:
prohojiy [21]3 years ago
5 0

Answer:

The correct option is C: For objects to communicate effectively with one another, each must know how the other object is implemented.

Explanation:

For effective communication of objects with each other, there is no need for each object to know how the other object is implemented. The rules for communication are already defined, and hence you do not have to know, as details of implementation are hidden. Hence the only false statement from the options is C.

You might be interested in
Declare a structure whose tag name is Server and that contains the following fields: manufacturer, a string, model and serialnum
elena55 [62]

Answer:

Hi there Smartcreeper! You can declare structs in C++ to answer this question. Please refer to my explanation below.

Explanation:

A struct in C++ allows us to define a structure with different data types into a single collection. The "emp[30];" at the end of the struct declares an array of the Server structure of size 30. The assignments to different components as required in the question are made and printed out to the console to verify.

#include <iostream>

#include <string>

#include <sstream>

using namespace std;

struct Server {

   string manufacturer;

   string model;

   string serialnum;

   int year;

   double clockSpeed;

   int cores;

   int ram;

   int storage;

} emp[30];

int main()

{

   int k = 5;  

   int d = 2;

   emp[30].storage = 12;

   emp[d].manufacturer = 3.50;

   emp[k].model = "Hello";

   cout << emp[30].storage << endl;

   cout << emp[d].manufacturer << endl;

   cout << emp[k].model << endl;

}

3 0
3 years ago
Convert the following pseudi code to C++ code. BE sure to define the apprpriat evariables.
KATRIN_1 [288]

Answer:

Following are the C++ code

int speed=20; //  Store 20 in the speed varaible.

int time=10; //Store 10 in the time variable.

int distance = speed *time; // multiply by speed *time

cout<<distance; // display the value of distance

Explanation:

Following are the program in C++ language :

#include <iostream> // header file

using namespace std; // namespace

int main()

{

   int speed=20; //  Store 20 in the speed varaible.

int time=10; //Store 10 in the time variable.

int distance = speed *time; // multiply by speed *time

cout<<distance; // display the value of distance

   return 0;

}

Output:20

Explanation:

Following are explanation of following code

  • Declared a vaiable of type int called "speed" and store 20 on it.
  • Declared a vaiable of type int called "time" and store 10 on it.
  • multiply by speed into the time and store into the distance variable.
  • finally print the "display" value
8 0
3 years ago
Write the output of the following program:
Iteru [2.4K]

Answer:

Expression A

Explanation:

In this Pseudocode, the output would be 100. This is because the code is looping from 1 to 20 and adding together all of the odd numbers between 1 and 20. Since it is checking to make sure that the remainder of each number is not equal to 0 which would indicate an odd number, and if it is odd then it adds it to the variable S. Therefore, the odd numbers between 1 and 20 are the following...

1 + 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 + 19 = 100

6 0
3 years ago
Is it possible to have a deadlock involving only oneprocess? Explain your answer.
Aleonysh [2.5K]

Answer:

Hi!

It is not possible to have a deadlock involving only one process.

Explanation:

Deadlock is only possible if there are multiple processes trying to access the same shared resources. Another way to see it is if you have shared resources only can be a deadlock if multiple processes attempt to use it.

With only one process, you can use shared resources without the risk of fall into deadlock, but you don't have concurrence either.

4 0
4 years ago
If a*b = 2a - 56, calculate the value of<br>3 * 4​
tino4ka555 [31]

Answer:

A=34

Explanation:

Rewrite the equation as 2a−56=3⋅4

2a−56=3⋅4

Multiply 3 by 4

2a−56=12

Move all terms not containing a to the right side of the equation.

2a=68

Divide each term by 2

and simplify.

a=34

3 0
3 years ago
Other questions:
  • A vehicle travels 2345 m in 315 toward the evening sun. What is its velocity
    13·1 answer
  • What is the name of the process that is used to establish whether or not a user’s identity is legitimate?
    7·1 answer
  • Two of the child elements of the page body are a navigation list with the ID #hole_list and an article element containing inform
    7·1 answer
  • This is important I need help please
    14·1 answer
  • The document theme does not determine the appearance of the style
    6·1 answer
  • Pick an appliance or an electronic device that you use at home that is powered from the wall outlet. Specify which electronics d
    10·1 answer
  • In case of an emergency, once you or someone already on the scene has contacted 9-1-1, the next thing to do is: A) Move them to
    9·2 answers
  • Which is an internet service? <br> A.) antivirus <br> B.) chat <br> C.) firewall<br> D.) router
    6·2 answers
  • Successful implementation of an effective MRP system depends upon (1) the recognition of the difference between independent and
    13·1 answer
  • Write a C program to find the sum of 10 non-negative numbers entered by user​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!