The superclass, EducationalInstitution, consist of:
An int instance variable, duration, signifying the standard number of the years spent at the institution. A constructor which accepts an int that is used to initialize the duration instance variable a method graduationRequirements which returns a String. The (default) behavior of graduationRequirements is to return a String stating "d years of study", where d refers to the value of duration instance variable
Write down a class definition for subclass LawSchool which consists of:
a) A (default) constructor which invokes the superclass constructor along with the value 3 (law school is typically a three year program).
b) A (overridden) method graduationRequirements which returns string "3 years of study and passing the bar". You MUST invoke the graduationRequirements method of superclass within this method (to attain the first portion of resulting string).