Kathleen does birthday parties, tooWe need a BirthdayParty classHere’s what we’re going to do:Build the Party Planner version 2.0One more thing...can you add a $100 fee for parties over 12?When your classes use inheritance, you only need to write your code onceDinner parties and birthday parties are both partiesBuild up your class model by starting general and getting more specificHow would you design a zoo simulator?Use inheritance to avoid duplicate code in subclassesDifferent animals make different noisesThink about what you need to overrideThink about how to group the animalsCreate the class hierarchyEvery subclass extends its base classC# always calls the most specific methodUse a colon to inherit from a base classWe know that inheritance adds the base class fields, properties, and methods to the subclass......but some birds don’t fly!A subclass can override methods to change or replace methods it inheritedAny place where you can use a base class, you can use one of its subclasses insteadA subclass can hide methods in the superclassHiding methods versus overriding methodsUse different references to call hidden methodsUse the new keyword when you’re hiding methodsUse the override and virtual keywords to inherit behaviorA subclass can access its base class using the base keywordWhen a base class has a constructor, your subclass needs one, tooThe base class constructor is executed before the subclass constructorNow you’re ready to finish the job for Kathleen!Build a beehive management systemFirst you’ll build the basic systemUse inheritance to extend the bee management system