0

Help me solve this I cann't hide profit...You can do it on your own way.

1- Suppose a program containing five classes(i.e. MobileCompany, Franchise_A, Franchise_B, Mobile, Customer) 2- Mobile company takes 20% profit on manufacturing cost of a mobile (profit taken is not visible to franchises and customer etc), also we have a generatemobiles method in this class. 3- After that the franchises can take profit from 0% to 15% which is visible to mobile company but not to customer. 4- The customer can see only the final price of mobile (Any profit taken should not be visible to him).

11th Dec 2018, 9:16 AM
Uzair Saeed
Uzair Saeed - avatar
3 Respostas
+ 4
Is this question about setting permissions? I don't understand what the difficulty is. If you could achieve (partial) hiding in step 2, wouldn't it be simpler to achieve (full) hiding in step 4?
11th Dec 2018, 11:05 AM
Janning⭐
Janning⭐ - avatar
0
Why just not retrieve those data from database ? Idk how the program design looks like is it in single application ? Or server client based ?
11th Dec 2018, 9:25 AM
Taste
Taste - avatar
0
single application
11th Dec 2018, 9:27 AM
Uzair Saeed
Uzair Saeed - avatar