![]() |
.. (לתיקייה המכילה) | |
What is the add(...) function ? and how ... ? and what .... ? and when ... ? | |
You should design your implementation to support extensions for the creation and assignment operations, this should be reflected by the add(...) method that should enable these new extensions. You are free to design this ( the more general the better ) and you decide the full declaration of the add method. remember that you need to write tests that check these extensions. |
Is the extensions relevant to toText() method ? | |
It is mainly for the fromText() method, but you can also enable it for the toText() |
What is the order of the output assignment and creation commands ? | |
1. create the object 2. for each non static and non final field in the fields in the order returned from getDeclaredFields() do: 2.1 create ( recursively ) this field object 2.2 assign the generated object in the field of the containing object. 3. do (2) for the fields of the base class. |
The tests fail because i get more fields than excpected | |
you should ignore static and final fields |
How do I check if a field is final or static ? | |
see the tutorial ( use Modifier class ) |
How do I recognize and handle arrays ? | |
1. When you get the class of an object use the method isArray() in the Class class. 2. Use the static methods in Array class to perform different operations on arrays, like creation and assignment |