What will be the correct option of the following Java code snippet?
Posted: Wed Jul 13, 2022 7:50 pm
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
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