This week's book giveaway is in the OCP forum. We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line! See this thread for details.
You can not use return keyword in method & void signature at the same time. void means no return type. Getter method should return a value & change it to String as instance variable catName is of type String.