• + 0 comments

    Nice, clear example of how inheritance and method overriding work in Java! Overriding getName() in the Soccer class shows exactly how a subclass can customize behavior. Funinexchange