abstract class University { //create the variables and put a constructor here } class College extends University { public String teaches; //you can make private too public College (//fill in with 3) { super(//put first 2) //assign the value to teaches } }
Copyright © 2021 Code 4 Tomorrow. All rights reserved.
The code in this course is licensed under the MIT License.
If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.