Dog and Person

an anonymous user · January 09, 2022 · Java
import java.util.*;
import java.lang.*;
import java.io.*;

class Dog {
  public String name;
  public Dog (String name) {
    this.name = name;
  }
}

class Person {
  public String name;
  public Person (String name) {
    this.name = name;
  }
}

class Main {
    public static void main(String[] args) {
        // ...
    }
}

Comments

Please sign up or log in to contribute to the discussion.