Cat and Dog examples: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

25 November 2026

  • curprev 12:3712:37, 25 November 2026 Cadrgtsecond talk contribs 1,282 bytes +1,282 Created page with "A Cat and Dog example is an artificial example often inspired by real life objects used to teach programming, particularly Software Architecture, and particularly Object Oriented Programming <pre> // Parent class class Animal{ void sound(){ System.out.println("Animal makes a sound"); } } // Child class class Dog extends Animal{ @Override void sound(){ System.out.println("Dog barks"); } } // Child class class Cat extends Animal{..."