Java - Interfaces
Which of the following is the correct syntax for a class
Car implementing two interfaces Engine and Wheels?Car implementing two interfaces Engine and Wheels?implements followed by a comma-separated list of interfaces.implements Engine, Wheels. Options B and D incorrectly use extends for interfaces or mix keywords wrongly. public class Car implements Engine & Wheels {} uses an invalid '&' symbol.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions