Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Profile {
- private User u;
- private Friend f;
- private Post p;
- public Profile(String first, String last, int age) {
- u = new User(first, last, age);
- f = new Friend();
- p = new Post();
- }
- public void printProfile() {
- u.display();
- f.display();
- p.display();
- }
- public void togglePosts() {
- p.toggleVisibility();
- }
- public void setStatus(String status) {
- u.setStatus(status);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement