A class Employee has id, name and salary and is passed to a business layer. Compare using public data members versus private members with getters and setters, say which you would prefer, and justify…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.