I would appreciate if someone could help figure out where I am making a mistake.Thanks.
package com.codegym.task.task05.task0503;
/*
Getters and setters for the Dog class
*/
public class Dog { // creates a dor class
//write your code here
public String name; // creates instance variable of type string called name
public int age; // creates instance variable of type integer called age
}
public String getName(String name) {
return name;
}
public void setName(String name){
this.name= name;
}
public int getAge(int age){
return age;
}
public void setAge(int age){
this.age= age;
}
public static void main(String[] args) { // this creates the main method where the programs starts running
}
}