Forum Stats

  • 3,826,843 Users
  • 2,260,713 Discussions
  • 7,897,094 Comments

Discussions

How to write data structure Graph for Java model class

User_O4OI0
User_O4OI0 Member Posts: 1 Green Ribbon
edited Jun 18, 2022 2:17PM in Java Puzzle Ball

Question :

A product can have distinctive sorts of attributes, and they can change with regard to items, such as a car can have taking after qualities: {cost, colour, price} and chair can have : {cost, width, profundity, stature}. Product attributes are organized in a progressive bunch structure, where a product attribute group can contain one or a few product attributes and/or attributes. Group can contain one or a more Product Attributes and/or Product Attribute Groups.

Write the code required to handle the over portrayed items and a print work that prints the information in such a way that it is evident which properties have a place to which item and which quality gather in case any.