Question: A software developer is developing a bank records module that stores customers bank details securely. The data is represented internally as follows: struct account {
A software developer is developing a bank records module that stores customers bank details securely. The data is represented internally as follows:
struct account { char name[30], /*name */ ID[10] ; /*ID */ double blnce ; /*balance */ } ; /* Declared global, but private to the module */ int num_accounts = 0 ; int *account_arr = NULL ; Show how the software developer can enable client functions to display customer records, while maintaining good encapsulation: keeping the modules private data safe from being altered by client code. Write some implementation code that would provide this service.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
