正解:A
* To use an Apex interface within a class, the class must implement the interface using the implements keyword. This is the correct way to inherit behavior defined in an interface.
Example:
public class SilverLaptop implements Laptop {
// Implementation of the methods defined in the Laptop interface
}
Why not other options?
* B: The extends keyword is used for inheriting from a class, not implementing an interface.
* C: This syntax is incorrect and not supported in Apex.
* D: This syntax is also incorrect as interfaces are not referenced with an @Interface annotation in Apex.
References:
* Apex Interfaces Documentation