100 Days of Java challenges

Day 27: Inheritance

Implement two classes Instructor and Student which inherits the User class

  • Instructor: Add fields like qualification, coursesTaught, salary etc.
  • Student: Add fields like registeredCourses, grade, joiningYear etc.
  • Implement constructors for both classes
  • Implement constuctor that utilizes super keyword
  • Instantiate objects for both Instructor and Student class using above constructors

Community|Blog|Youtube|Careers|Contact Us
Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
100DaysOfCode@2024