I want to creat class Catagories that each catagory is a root to 10 Subcatagories each one is a node to 10 products? How to ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want to creat class Catagories that each catagory is a root to 10 Subcatagories each one is a node to 10 products? How to ?

urgent

5th Dec 2016, 7:17 PM
sal tarek
sal tarek - avatar
3 Answers
+ 2
Hi, it's better to create 3 level class , and from level 3 inherit level 2 and level 2 inherit level 1. Level 1 is root class.
5th Dec 2016, 8:19 PM
Ali Shirini
Ali Shirini - avatar
0
i just dont get how to make tree as a class and assign the Children cus i have to do it that way or no 10marks for my project. i did it your way but they want it the harder way. thank you for ur consideration though
5th Dec 2016, 8:45 PM
sal tarek
sal tarek - avatar
0
the details need Access and Database included but u can help me create class Catagories . Class's SubCatagory objects (10 sub objects exactly) are children of Catagory objects . each subcatagory object has 10 children objects of Class Product ... each object has its own name and number . thanks alot for the help
5th Dec 2016, 10:04 PM
sal tarek
sal tarek - avatar