What will be the correct option of the following Java code snippet?
interface ICust
{
}
class RegularCustomer implements ICust
{
}
class OneTimeCustomer implements ICust
{
}
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
Answer: Option A

Join The Discussion