BirthdaySong b2 = new BirthdaySong("Grace");
b2.sing();
Here creating BirthdaySong object you pass a string: "Grace"
in BirthdaySong class you have a constructor that looks like this:
...
Type: Posts; User: Dalisra
BirthdaySong b2 = new BirthdaySong("Grace");
b2.sing();
Here creating BirthdaySong object you pass a string: "Grace"
in BirthdaySong class you have a constructor that looks like this:
...