Explanation of Solution
Stale:
The stale means that the value of an item dependent on other data and the same item is not updated when another data is changed.
Example:
Consider an example of stale which is given below:
//class definition
Class Test
//fields declaration
Private Real parts
Private Real labor
//definition of constructor
Public Module Test (Real p, Real l)
//set the values
Set parts = p
Set labor = l
//end the module
End Module
//definition of matator
Public Module setParts (Real p)
//set the value
Set parts = p
//end the module
End Module
//definition of matator
Public Module setLabor (Real l)
//set the value
Set labor = l
//end the module
End Module
//definition of accessor
Public Function Real getParts ()
//return the value
Return parts
//end the function
End Function
//definition of accessor
Public Function Real getLabor ()
//return the ...
Want to see the full answer?
Check out a sample textbook solutionChapter 14 Solutions
Starting Out with Programming Logic and Design (4th Edition)
- What is the term used to refer to a set of interrelated data entries?arrow_forwardWhat exactly is a data race?arrow_forwardExplain the primary operations involved in segmentation. Is there a difference between this and paging? When something is said to be compressed, what exactly does it mean?arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning