What Will Be The Correct Option Of The Following Java Code #1148
What will be the correct option of the following Java code snippet?</p> <pre><code class="language-java" line="1"> interface ICust { } class RegularCustomer implements ICust { } class OneTimeCustomer implements ICust { } </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs128 Java. It can also be found in gs gs128 Java Autoboxing - Liskovs Principle - Quiz No.1.
What will be the correct option of the following Java code snippet?
interface ICust { } class RegularCustomer implements ICust { } class OneTimeCustomer implements ICust { }
ICust can be replaced with RegularCustomer
RegularCustomer can be replaced with OneTimeCustomer
OneTimeCustomer can be replaced with RegularCustomer
We can instantiate objects of ICust