Question:

Following program have compilation error, can you guess root cause of it?

abstract class VQCourse {
    public String courseName;
    public String courseID;
} public class VirtuQCourseProvide extends VQCourse {

    public static void main(String[]args) {
        VQCourse course1 = new VQCourse();
         course1.courseID = "0001";
         course1.courseName = "JAVA";
         System.out.println(course1.toString());
}}

Answers:


Keywords:

© 2017 QuizBucket.org