Skip to content

Instantly share code, notes, and snippets.

@laxmankumar2000
Created March 3, 2021 12:02
Show Gist options
  • Save laxmankumar2000/5c9fb09a946afc1d95d94bd8703fd219 to your computer and use it in GitHub Desktop.
Save laxmankumar2000/5c9fb09a946afc1d95d94bd8703fd219 to your computer and use it in GitHub Desktop.
package Genaric;
class employee2 {
int id;
String name;
int salary;
public employee2(int id, String name, int salary) {
this.id = id;
this.name = name;
this.salary = salary;
}
@Override
public String toString() {
return "employee2{" +
"id=" + id +
", name='" + name + '\'' +
", salary=" + salary +
'}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment