Page 1 of 1

What will be the correct option of the following Java code snippet?

Posted: Wed Jul 13, 2022 7:50 pm
by answerhappygod
interface ICust {}class RegularCustomer implements ICust {}class OneTimeCustomer implements ICust {}
a) ICust can be replaced with RegularCustomer
b) RegularCustomer can be replaced with OneTimeCustomer
c) OneTimeCustomer can be replaced with RegularCustomer
d) We can instantiate objects of ICust