- 2 Create A Class Named Manager This Class Has Two Private Attributes Salary Address You Want To Access Those Priv 1 (20.48 KiB) Viewed 21 times
2. Create a class named "Manager". This class has two private attributes: Salary, Address. You want to access those priv
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
2. Create a class named "Manager". This class has two private attributes: Salary, Address. You want to access those priv
2. Create a class named "Manager". This class has two private attributes: Salary, Address. You want to access those private members from the Main class. You have to create an object of the Manager class then use the setter and getter methods to access those attributes.