I am working on a parsing a file .
This is my problem.
There are classes and subclasses. Classes/Subclasses are defined by attributes. The sub classes will inherit the attributes of its super class.
For example:
Employee(attrbts: name, salary)
manager(attrbts: responsibilities)
clerks(attrbts: department)
Emp is a class with manager nd clerk as sub cls and these sub class will inherit the attrbts .
Now I have to parse the file and store the values such that I should be able to add a super class with its subclasses or only a subclass into a new project. My problem worsens wen i decide to add a super class after i add a subclass since the program doesnt not make the relation btw the classes.
i hope i am not very confusing and any help will be really really appreciated.
P.s: i have used linked lists presently. Is there a better way??
Chipsncoke