Answers for "uml diagram java package with class"

0

uml diagram in java example

public class Person {
    private String name;
    private int age;

    public Person(String initialName) {
        this.name = initialName;
        this.age = 0;
    }

    public void printPerson() {
        System.out.println(this.name + ", age " +   this.age + " years");
    }

    public String getName() {
        return this.name;
    }
}
Posted by: Guest on February-23-2021
0

uml diagram in java example

public class Person {
    private String name;
    private int age;

    public Person(String initialName) {
        this.name = initialName;
        this.age = 0;
    }

    public void printPerson() {
        System.out.println(this.name + ", age " +   this.age + " years");
    }

    public String getName() {
        return this.name;
    }
}
Posted by: Guest on February-23-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language