package com.codegym.task.task05.task0508; /* Getters and setters for the Person class */ public class Person { String name; int age; char sex; public String getName() { return name; } public void setName() { this.name = name; } public int getAge() { return age; } public void setAge() { this.age = age; } public char getSex() { return sex; } public void setSex() { this.sex = sex; } public static void main(String[] args) { Person person = new Person(); person.getName(); person.setName("Cris"); person.getAge(); person.setAge(4); person.getSex(); person.setSex('M'); } }