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
Marysya12 [62]
3 years ago
7

Explain how class (static) variables and methods differ from their instance counterparts. Give an example of a class that contai

ns at least one class variable and at least one class method. Explain why using a class variable and method rather than an instance variable and method would be the correct choice in the example you select.
Computers and Technology
1 answer:
irakobra [83]3 years ago
5 0

Answer:

Static variables and functions differs from their instance counterparts in that you don't need to instantiate an object of a class to access them (variables) or call them (functions). The class itself can be used to access or call static variables and functions.

Explanation:

Example:

Suppose we have a class that represents a word editor. To save progress, we need a file location on the disk.

We can define file location as a static variable, since all instances of the class will use the same file location value.

Also, to access the static variable outside of class definition, we can define a static method to get/set the value of the static variable.

A static save to file function can also be defined in the class (to perform the work to update the file on disk). Again this function would be defined as static, because all instances of the class will need the same method whenever they want to write to file.

You might be interested in
Which of the below statements describes the purpose of HTML 5 - check as many as apply
rewona [7]

Answer: 2) To provide instruction for how the structure     should look

              4) To provide instruction for how the content should look

Explanation:

HTML 5 is a hypertext markup language revision which basically provide the structure and content to the page. It is a standard programming which basically describe the content of the web page. It reduce the overall development time and it is faster.

In the remaining option, It does not provide any meaning as we cannot add structure directly we should use the CSS styling for the particular document.

Therefore, (2) and (4) option are correct.

4 0
3 years ago
The ability to learn a new computer software program is to ____________ as knowledge of state capitals is to _____________.
Montano1993 [528]
<span>The ability to learn a new computer software program is to ADAPT as knowledge of state capitals is to COMMIT. Learning something new is to adapt and take time to study and learn what needs to be done in order for the task you wish to happen. To have knowledge of a specific thing, is to committing that face to your memory.</span>
8 0
3 years ago
Which property of a DBMS lets you change the database structure without requiring you to change the programs that access the dat
Gala2k [10]

Answer:

"Integrity constraints " is the correct answer.

Explanation:

  • A successful DBMS offers integrity constraints, which have been an option that allows you to modify the database layout without modifying the applications accessing the repository.
  • A principle or requirement which the data in something like a database should therefore obey.

So that the above is the correct choice.

8 0
4 years ago
Free Brainliest Again
REY [17]

Answer:

hi

Explanation:

7 0
3 years ago
Read 2 more answers
Objective measures of the user support or help desk operation are called _____.
gizmo_the_mogwai [7]
The answer is "<span>performance statistics"......</span>
5 0
4 years ago
Other questions:
  • In order to accomplish the same goal, a person can click and hold down the mouse button and drag to the right, or hold Shift and
    5·2 answers
  • How can rows be added to a table? Check all that apply
    13·2 answers
  • What is activated as necessary to support local eocs and to ensure that responders have the resources they need to conduct respo
    5·1 answer
  • Your friend gave you a flash drive containing photos from a weekend event. After you copy the files, you notice a bunch of .DS f
    6·1 answer
  • How to prepare and draw a corresponding flowchart to compute the sum and product of all prime numbers between 1 and 50
    7·1 answer
  • It can be hard to get close enough to photograph animals in the wild true or false
    14·2 answers
  • Please help with this question​
    11·1 answer
  • What is Smart Content Profits all about?
    10·2 answers
  • I NEED HELP!! THIS IS 3D COMPUTER MODELING COURSE IN CONNEXUS
    14·1 answer
  • According to the selection, speech-software developers are still striving to develop speech-recognition technology that —
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!