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
bezimeni [28]
3 years ago
14

What is the benefit of encapsulation?

Computers and Technology
1 answer:
Marat540 [252]3 years ago
3 0

Answer:

B. To reuse code

You might be interested in
U GET BRAINLIEST HELP PLZ
Art [367]
BOTH OF THEM ARE C : )
3 0
3 years ago
Which language do you use to add functionality to a web page
Dovator [93]
The answer is Javascript. In partner with HTML/HTML5 (Hypertext markup language : which provides the structure and CSS (Client Side Scripting : Provides the design to the structure). JS or Javascript programming language provides the function at the backend of a webpage. It responds to the input and also calls on the PHP / SQL Scripts to tap the database.
6 0
3 years ago
Spam is _____.
AfilCa [17]
Multiple answers. Attachment and practice of sending unwanted messages
6 0
3 years ago
Read 2 more answers
.When the ______ statement is executed, the variable or expression is evaluated and the resulting value is returned as the outpu
Yuki888 [10]

Answer:

return.

Explanation:

When a "return" statement is executed then the given expression or variable in the function is evaluated and the result will be returned by the function when the function is called.With the help of return statement, we can terminate the execution a method/function and then give control to the calling function.

Example:

#include <bits/stdc++.h>

using namespace std;

long long sq( int s )

{

 /* here "return" will first execute the expression and then

 return the value to the calling function i.e. sq() in the main

 function.

 */

   return( s * (long long)s );

}

int main()

{

   long long y;

   int x = INT_MAX;

// sq() will return a value and that value is store in the variable "y"

y = sq( x );

cout<<y<<endl;

return 0;

}

6 0
3 years ago
9.17 LAB: Acronyms An acronym is a word formed from the initial letters of words in a set phrase. Write a program whose input is
AlexFokin [52]

Answer:

Hence the code is given as follows,

import java.util.Scanner;

public class LabProgram {

   public static String createAcronym(String userPhrase){

       String result = "";

       String splits[] = userPhrase.split(" ");

       for(int i = 0;i<splits.length;i++){

           if(splits[i].charAt(0)>='A' && splits[i].charAt(0)<='Z')

               result += splits[i].charAt(0);

       }

       return result;

   }

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       String s = scan.nextLine();

       System.out.println(createAcronym(s));

   }

}

6 0
3 years ago
Other questions:
  • What is a drawback to being in Slide Show mode? a- Being able to review each slide in order
    8·2 answers
  • How to find the biggest files on your computer?
    10·1 answer
  • The Tab dialog box helps you set tabs in your word processing document. What does this dialog box control the movement of when y
    15·2 answers
  • In a shooter game, players can play “capture the flag,” which is a multiplayer game in which players of a team need to collect f
    15·2 answers
  • What entity created the open systems interconnection (osi) seven-layer model?
    15·1 answer
  • Se Statements
    6·1 answer
  • How to do this question , please answer quickly , I’ll give branliest
    14·1 answer
  • Write the thesis statment of research paper​
    5·1 answer
  • Kindly help me in this question by C PROGRAM or BY WORDINGS WHICH DESCRIBES THE PROBLEM SOLUTION
    6·1 answer
  • Write a function that takes as input a single parameter storing a list of integers and returns the minimum, maximum, and average
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!