Hey guys, so I am trying to learn how to use interfaces abstract classes , and I've ran into a problem. So this is my code
So as you can see I have this interface Called article and i implement it in an abstract class,inherit the methods from the interface, use the abstract class to write another concrete class (Accessory) in which i use the super key word to call the methods from the abstract class(name,description,price). Now In this Merchandise class I'm having an issue. So according to the graph it extends from the Interface Article as well, and in the class its self i need to implement a final field (that is quantity) and also two constructors (Article article) to set the starting value of quantity to 0 (hopefully I did that right) and a second one to initialize the parameters. And i need to use getters to get the values of quantity and article. Now I've done that but when i try to compile the class I get this error that says i need to override the method getDescription or make the class Merchandise abstract. How do i solve this. I can't make the class abstract beacuse that is against the rules of the assignment, but rewrting those methods bring me nothing.Is there any way to avoid this? Thanks!interface Article { public String getName(); public double getPrice(); public String getDescription(); } abstract class AbstractArticle implements Article { final private String name; final private double price; final private String description; AbstractArticle(String name,double price,String description) { this.name = name; this.price = price; this.description = description; } public String getName() { return name; } public double getPrice() { return price; } public String getDescription() { return description; } } class Accessory extends AbstractArticle { final String instructionsForUse; Accessory(String name, double price, String description, String instructionsForUse) { super(name,price,description); this.instructionsForUse = instructionsForUse; } public String getinstructionsForUse() { return instructionsForUse; } } class Merchandise implements Article { final private int quantity; Article article; Merchandise(Article article) { this.article = article; quantity = 0; } Merchandise(Article article, int quantity) { this.article = article; this.quantity = quantity; } public int getQuantity() { return quantity; } public Article getArticle() { return article; } }