Question 14
Consider the code given below.
class Calculator{ public int add(int a, int b){ return a+b; }}class SmartCalculator extends Calculator{ public int add(int a, int b, int c){ return a + b + c; } public void divide(){ System.out.println("Prints quotient and remainder"); }}public class User{ public static void main(String[] args){ Calculator c = new Calculator(); SmartCalculator sc = new SmartCalculator(); // LINE 1 }}Choose the correct option(s) that can be filled in place of LINE 1 such that it does not generate any compile time error.