Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BendixBoy{
- private String name;
- public BendixBoy(String name) {
- this.name = name;
- }
- public BendixBoy(BendixBoycopy) {
- name = copy.name;
- // or
- // name = copy.getName();
- }
- public String getName() {
- return name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement