Class Person


  • public class Person
    extends java.lang.Object
    Person model.
    • Constructor Summary

      Constructors 
      Constructor Description
      Person​(java.lang.String name, double age, double salary)
      Constructs a new instance of person.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getAge()  
      java.lang.String getName()  
      double getSalary()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Person

        public Person​(java.lang.String name,
                      double age,
                      double salary)
        Constructs a new instance of person.
        Parameters:
        name - Name.
        age - Age.
        salary - Salary.
    • Method Detail

      • getName

        public java.lang.String getName()
      • getAge

        public double getAge()
      • getSalary

        public double getSalary()