Computer Science Canada What are 'objects as data records'? |
Author: | CjGaughan [ Thu Feb 16, 2006 10:07 am ] |
Post subject: | What are 'objects as data records'? |
One of the 'mastery aspects' I need to complete for my IB Computer Science Dossier, and I was just wondering if I could get a little bit better explanation of what it is. Thanks. |
Author: | turboliux [ Thu Feb 16, 2006 10:13 am ] |
Post subject: | |
Quote: Mastery aspects
Standard level To achieve a mastery factor of 1.0, students must have mastered at least 10 of the following 15 aspects. 1. Arrays 2. User-defined objects 3. Objects as data records 4. Simple selection (if-else) 5. Complex selection (nested if, if with multiple conditions or switch) 6. Loops 7. Nested loops 8. User-defined methods 9. User-defined methods with parameters (the parameters have to be useful and used within the method body) 10. User-defined methods with appropriate return values (primitives or objects) 11. Sorting 12. Searching 13. File i/o 14. Use of additional libraries (such as utilities and graphical libraries not included in appendix 2 Java Examination Tool Subsets) 15. Use of sentinels or flags It is anticipated that this list will provide students with the option to choose algorithms and data structures appropriate to the problem rather than contriving a solution to fit the mastery aspects. Where one aspect includes others, all are credited, for example aspect 10 will also satisfy aspects 8 and 9 (always provided that the use is non-trivial, well-documented and appropriate). ask which ones you dont understand, i will try to explain |
Author: | Martin [ Thu Feb 16, 2006 10:26 am ] | ||
Post subject: | |||
I would assume that it would be referring to using an object to create a new data type. For example, you might want to create a Point3d class to handle a point on a 3d space you could create the following data object:
Then when you wanted to create an 3d point, you would just create something like Point3d point = new Point3d(1.0,2.0,3.1); Cool? And for stuff like this, C++'s operator overloading would be really nice... |
Author: | wtd [ Thu Feb 16, 2006 12:21 pm ] | ||
Post subject: | |||
Martin wrote: And for stuff like this, C++'s operator overloading would be really nice...
Being able to create properties would be even more useful in this case. C#
|
Author: | rizzix [ Thu Feb 16, 2006 4:03 pm ] | ||
Post subject: | |||
wtd wrote: Being able to create properties would be even more useful in this case. Maybe but Java relies more on the tools than language constructs. You can just fire up eclipse right click and generate the get/set methods.
A more ideal solution for such a case would be something like this:
where the method hides the variable by default. ![]() |
Author: | turboliux [ Thu Feb 16, 2006 6:20 pm ] | ||||
Post subject: | |||||
oops, didn't read the title which was the question... ![]() but anyways, "3. Objects as data records " means that you need to create a class and then one or more objects from that class which will hold some sort of data. It has to be non-trivial, so that class is not already in java library. once you came up with idea for your project, you will be able to write that class. For example, lets say we are creating some sort of public library software which will help the librarian to check in/out books:
so lets say in your this simple program is in console, and the user is asked to input data (I used IBIO class, you may have had experience with it before)
hope it was usefull. |