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
Orlov [11]
3 years ago
14

When you use information hiding by selecting which properties and methods of a class to make public, you are assured that your d

ata will be altered only by the properties and methods you choose and only in ways that you can control. True or false?
Computers and Technology
1 answer:
dusya [7]3 years ago
8 0

Answer:

True

Explanation:

Information hiding involves using private fields within classes and it's a feature found in all object-oriented languages such as Java, Python, C#, Ruby etc.

When you use information hiding by selecting which properties and methods of a class to make public, you are assured that your data will be altered only by the properties and methods you choose and only in ways that you can control.

You might be interested in
You are adding a new 500 GB hard drive to your computer. The hard drive must be formatted with a file system to organize files i
AURORKA [14]
<h2>Answer:</h2><h3>NTFS is recommended according to given scenario.</h3>

<h2>Explanation:</h2>

Following are some point that help you understand the term NTFS:

  • NTFS is abbreviation of New Technology File System.
  • It is a file system that is commonly used in Windows Operating system now a days. Today's computers use NTFS widely.
  • Files are stored and retrieved on hard drive by means of the NTFS.
  • NTFS is somehow an advanced version o FAT(File allocation Table) and HPFS.
  • NTFS is adopted as it is extendtable as well as secure.

<h3>I hope it will help you!</h3>
3 0
3 years ago
Write a method called swapPairs that switches the order of values in an ArrayList of strings in a pairwise fashion. Your method
arsen [322]

Answer:

  1. import java.util.ArrayList;
  2. public class Main {
  3.    public static void main(String[] args) {
  4.        ArrayList<String> strList =new ArrayList<String>();
  5.        strList.add("to");
  6.        strList.add("be");
  7.        strList.add("or");
  8.        strList.add("not");
  9.        strList.add("to");
  10.        strList.add("be");
  11.        strList.add("hamlet");
  12.        swapPairs(strList);
  13.        System.out.println(strList);
  14.    }
  15.    public static void swapPairs(ArrayList<String> list){
  16.        for(int i=0; i < list.size()-1; i+=2){
  17.            String temp = list.get(i);
  18.            list.set(i, list.get(i+1));
  19.            list.set(i+1, temp);
  20.        }
  21.    }
  22. }

Explanation:

Firstly, let's create a method swapPairs that take one ArrayList (Line 18). In the method, use a for-loop to traverse through each item in the ArrayList and swap the items between the current items at index-i and at index-i+1 (Line 19-22). The index-i is incremented by two in next loop and therefore the next swapping will proceed with third and fourth items and so forth.

In the main program, create a sample ArrayList (Line 5-12) and then test the method (Line 14) and print the output (Line 15). We shall get  [be, to, not, or, be, to, hamlet].

7 0
3 years ago
Kyle wants to access his school’s home page. How can he do this?
Vedmedyk [2.9K]

First, he needs to have a computer that is connected to the internet, then secondly kyle needs to know the URL/website of his school, thirdly, he needs to enter the URL into the browser on his computer, this takes him straight to his schools' Homepage.

6 0
3 years ago
Read 2 more answers
Write bubblesort algorithm using random programming language
maks197457 [2]

Answer:

   n := length(A)

   repeat

       swapped := false

       for i := 1 to n-1 inclusive do

          <em> /* if this pair is out of order */</em>

           if A[i-1] > A[i] then

<em>                /* swap them and remember something changed */</em>

               swap(A[i-1], A[i])

               swapped := true

           end if ⇒

       end for

   until not swapped

end procedure

\\

Explanation:

This is pseudocode

3 0
3 years ago
Read 2 more answers
Which text features does this section contain? Check all that apply.
NISA [10]

which ones apply manuelh


6 0
3 years ago
Other questions:
  • You bought a monochrome laser printer two years ago. The printer has gradually stopped feeding paper. Which printer component sh
    14·1 answer
  • Host A and B are directly connected with a 100 Mbps link. There is one TCP connection between the two hosts, and Host A is sendi
    14·1 answer
  • Software that instructs the computer how to run applications and controls the display/keyboard is know as the
    8·1 answer
  • Is there a way to get back old messages that you didn't mean to delete??? I have a Samsung S5 and I really really need help. I d
    11·2 answers
  • Which of the following might an interior designer in the retail industry specialize in?
    9·1 answer
  • ساعدوني على الإجابة على هذه الأسئلة
    11·1 answer
  • Your network has four Hyper-V hosts, which are running three domain controllers and about 10 member servers. Three of the member
    10·1 answer
  • A folder is a collection of related of data is true or false​
    10·2 answers
  • A regional transportation and logistics company recently hired its first ChiefInformation Security Officer (CISO). The CISO’s fi
    7·1 answer
  • Copy the formula in cell M7 to the range M8:M15, and edit the copied formulas to return the value from the column indicated by t
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!