please solve fast 🙏🏼
Posted: Tue Jul 05, 2022 10:27 am
please solve fast 
QUESTION 7 Assume that class Furniture has following two private data fields: private String name; private int code; and the following method, in addition to other methods: public String toString() { return name + code; } Now, we want to write a class called DiningSet that inherits the properties of class Furniture as follows, having only one data field: public class DiningSet extends Furniture { private int sittingCapacity; We want to include a method toString in class DiningSet to create a String representation of the object, including all attributes. It can be written as follows: O a public String toString() { return super.toString() + sittingCapacity; } © b. public String toString() { return Furniture.toString() + sittingCapacity; } Oc public String toString() { return name + code + sittingCapacity; } Od public String toString() { return this.toString() + sittingCapacity; } Click Save and Submit to save and submit
QUESTION 7 Assume that class Furniture has following two private data fields: private String name; private int code; and the following method, in addition to other methods: public String toString() { return name + code; } Now, we want to write a class called DiningSet that inherits the properties of class Furniture as follows, having only one data field: public class DiningSet extends Furniture { private int sittingCapacity; We want to include a method toString in class DiningSet to create a String representation of the object, including all attributes. It can be written as follows: O a public String toString() { return super.toString() + sittingCapacity; } © b. public String toString() { return Furniture.toString() + sittingCapacity; } Oc public String toString() { return name + code + sittingCapacity; } Od public String toString() { return this.toString() + sittingCapacity; } Click Save and Submit to save and submit