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)
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning