Write an application that declares a class named person it should have instance variables to record name age and salary. Create a person object . Set and display its instance…