How to make an object that can fly, lay an egg, and do stuff (Inheritance)
<p>Im working on Inheritance right now in Java and this is the cod that I have that describes a bird</p>

<pre><code>public class Bird {
    public void fly() {
        System.out.println("the Bird flies");
    }
    public void layEgg() {
        System.out.println("The bird layed an egg");
    }
    public void doStuff() {
        System.out.println("Doing some stuff...");
        fly(); layEgg();
    }

}
</code></pre>

<p>this is my main class and how do I create a bird object that can fly, lay an egg, and do stuff.</p>

<pre><code>public class Exploration {
    public static void main(String[] args) {
    ????
    }

}
</code></pre>
