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
Monica [59]
3 years ago
8

What is the process by which we can control what parts of a program can acccess the members of class

Computers and Technology
1 answer:
Lana71 [14]3 years ago
8 0

Answer:

Encapsulation.

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.

In object-oriented programming language, a process known as encapsulation is used for the restrictions of the internal data of a software program from the outside code, therefore preventing an unauthorized direct access to the codes. This is achieved through the use of classes.

In Computer programming, class members can be defined as the members of a class that typically represents or indicates the behavior and data contained in a class.

Basically, the members of a class are declared in a class, as well as all classes in its inheritance hierarchy except for destructors and constructors.

In a class, member variables are mainly known as its attributes while its member function are seldomly referred to as its methods or behaviors.

One of the main benefits and importance of using classes is that classes helps to protect and safely guard their member variables and methods by controlling access from other objects.

Therefore, the class members which should be declared as public are methods and occasionally final attributes because a public access modifier can be accessed from anywhere such as within the current or external assembly, as there are no restrictions on its access.

You might be interested in
An object completes one round of circle of radius 7m in 20 sec. Distance travelled after 10 sec is? ​
Ivanshal [37]

Answer:

distance \: travelled \:  = 2\pi \\  \\ 44cm \:  \:  \:  \:  \\ speed \:  =  \frac{44}{2.2}  \ \\ distance \: travelled \: in \: los = 10 \times 2.2 = 22cm \\  \\ total \: distance = 44 + 22 = 66metres

5 0
3 years ago
Which protocol is often used in conjunction with ipsec to provide a remote access client vpn with user authentication?
amid [387]

The L2TP or Layer 2 Tunneling Protocol is often used in conjunction with ipsec to provide a remote access client vpn with user authentication.

<h3>What is vpn?</h3>

VPN is known as a Virtual Private Network extends a private network across a public network and activates users to send and receive data across shared or public networks as if their computing devices were directly connected to the private network.

The main difference between VPN proxy and a VPN is encryption and VPNs hides all the web activities performed by the user as well as user's private IP address.

Therefore, the L2TP or Layer 2 Tunneling Protocol is often used in conjunction with ipsec to provide a remote access client vpn with user authentication.

Learn more about VPN here:

brainly.com/question/17272592

#SPJ4

3 0
2 years ago
Which of the following regarding the Ames test is true? a. It is used to identify newly formed auxotrophic mutants. b. It is use
alexandr1967 [171]

Answer:

A

Explanation:

5 0
3 years ago
Write a program with a function that accepts a string as an argument and returns the number of uppercase, lowercase, vowel, cons
diamong [38]

Answer:

Explanation:

The following code is written in Python. It is a function called checkString that takes in a string as an argument and loops through each char in that string and checking to see if it is lowercase, uppercase, vowel, consonant, or punctuations. It adds 1 to the correct variable. At the end of the loop it prints out all of the variables. The picture below shows a test output with the string "Brainly, Question."

def checkString(word):

   uppercase = 0

   lowercase = 0

   vowel = 0

   consonants = 0

   punctuation = 0

   vowelArray = ['a', 'e', 'i', 'o','u', 'y' ]

   consonantArray = ['b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z']

   punctuationArray = ['.', '!', '?', ',', ';', '(', ')']

   for char in word:

       if char.isupper():

           uppercase += 1

       else:

           lowercase += 1

       if char.lower() in vowelArray:

           vowel += 1

       elif char.lower() in consonantArray:

           consonants += 1

       if char in punctuationArray:

           punctuation += 1

   print('Uppercase: ' + str(uppercase))

   print('Lowercase: ' + str(lowercase))

   print('Vowels: ' + str(vowel))

   print('Consonants: ' + str(consonants))

   print('Punctuations: ' + str(punctuation))

8 0
3 years ago
Describe the steps required for setting the date and time in Windows 7.​
Vinvika [58]

Answer:

Explanation:

   Click the displayed time in the taskbar and then click Change date and time settings.

   Figure : Date and time settings encircled in red

   Date and time settings encircled in red

   Figure : Date and Time window

   Date and Time window

   Click the Date and Time tab.

   Click Change time zone. Make sure the correct time zone is selected. Place a checkmark next to Automatically adjust clock for Daylight Saving Time if it is not already selected, and then click OK.

   Figure : Time Zone Settings

   Time Zone Settings

   Click Change date and time.

   Click the small left and right arrows in the calendar to select a month and year, and then click a day within the month.

   Figure : Date and Time Settings: Date

   Date selection in the Date and Time Settings window

   Change the time by entering the hour, minute, AM or PM, or by clicking the up and down arrow buttons. Click OK when the time matches the current time.

   Figure : Date and Time Settings: Time

   Time setting in the Date and Time Settings window

   The time zone, date, and time have been set.

Synchronizing time with Windows 7 internet time server

Windows can automatically synchronize the date and time with a time server to make sure the time displayed on your computer is accurate. Follow these steps to enable Internet Time:

   note: If your computer is part of a domain, the Internet Time feature is not available. Contact your System Administrator for clock synchronization information.

   Click the displayed time in the taskbar and then click Change date and time settings.

   Figure : Change date and time settings

   Change date and time settings

   Figure : Date and Time window

   Date and Time window

   Click the Internet Time tab, and then click Change settings.

   If you are prompted for an Administrator password or confirmation, type the password or provide confirmation.

   Figure : Internet Time tab

   Internet Time tab

   Make sure that Synchronize with an Internet time server is checked.

   Figure : Internet Time Settings

   Internet Time Settings

   Make sure the computer is connected to the Internet and click the Update Now button.

   The computer connects to an Internet server and updates the time on the computer.

       note: If the computer fails to receive an update from the selected Internet time server, a message opens stating that an error has occurred. Select a different server and try again.

   Click OK.

   Your computer's clock will now regularly syncronize via the Internet.

8 0
3 years ago
Other questions:
  • In order to allow communication between vlans for exchange of data what must be used?​
    15·1 answer
  • In a doubly linked list, every nodecontains the address of the next node and the previousnode except for the ____ node.
    8·1 answer
  • For connection to place on any network you must have a set of standards?<br> O True<br> O False
    8·1 answer
  • When it comes to the best possible security for your wireless router, be sure to use WEP encryption to ensure that your transmis
    14·1 answer
  • Which term describes the order of arrangement of files and folders on a computer?
    10·1 answer
  • Verify (valid or not valid) using resolution the following reasoning: "Every student in the SCIS is a CS student or an IT studen
    15·1 answer
  • How do you program a computer
    7·1 answer
  • The Brinley website will not let me search for questions anymore. It says “Search all you want in-app” and then covers the quest
    14·1 answer
  • Please please help I don’t understand this
    7·2 answers
  • When a number gets assigned to a variable that already has a value __________. the new number overwrites the previous value at t
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!