The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
456
By Guest on 13th June 2019 06:27:11 AM | Syntax: TEXT | Views: 18



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. package com;
  2.  
  3. public class Employee {
  4.        
  5. private int id;
  6. private String name;
  7. private String designation;
  8. private int ssnNo;
  9. private int age;
  10. public Employee(int id, String name, String designation, int ssnNo, int age) {
  11.         super();
  12.         this.id = id;
  13.         this.name = name;
  14.         this.designation = designation;
  15.         this.ssnNo = ssnNo;
  16.         this.age = age;
  17. }
  18.  
  19. public int getId() {
  20.         return this.id;
  21. }
  22. public void setId(int id) {
  23.         this.id = id;
  24. }
  25. public String getName() {
  26.         return this.name;
  27. }
  28. public void setName(String name) {
  29.         this.name = name;
  30. }
  31.  
  32. public String getDesignation() {
  33.         return this.designation;
  34. }
  35. public void setDesignation(String designation) {
  36.         this.designation = designation;
  37. }
  38. public int getSsnNo() {
  39.         return this.ssnNo;
  40. }
  41. public void setSsnNo(int ssnNo) {
  42.         this.ssnNo = ssnNo;
  43. }
  44. public int getAge() {
  45.         return this.age;
  46. }
  47. public void setAge(int age) {
  48.         this.age = age;
  49. }
  50. }



  • Recent Pastes