Created
March 3, 2021 12:02
-
-
Save laxmankumar2000/5c9fb09a946afc1d95d94bd8703fd219 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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