I’m working on an assignment and need to define terms we’ve learned along the way. Things like “while, do while, for”, or “main ()method”.
I need to define the term “class (custom data type)”. I’ve been reading the course material, web pages, talking to class mates for a few hours and not getting any closer to a coherent understanding of the term.
Is any one able to explain this term to me?
This is what I’ve written so far for class (custom data type);
“
Classes are often called blueprints for objects. A class will define the parameters of an object, how it can be used, etc.
The Java language contains many predefined classes, such as the Math class (which contains terms such as Math.Pi and methods for more complex mathematical functions than basic addition, subtraction, multiplication and division).
“
This is what I’ve written for another term (so you understand I’m actually trying to get my own work done);
“
10 – While, Do While, For
While, Do While and For are all looping functions.
While and Do While are very similar. While checks the condition to run prior to running and Do While checking the condition after running at least once.
While and Do While will run until a defined condition is met. The condition may be set by a counter, a logical condition, etc.
For loops are set to run until a counter condition is met, ie. a For loop will run a predefined number of times. The counter can be set as an independent declared variable, or as a dependant variable.
For and While loops were used in 4.2PP. The For loop was used to underline headings with an equivalent line of symbols (dependant variable) and the While loop was used to ask for answers to simple multiplication problems until a sufficient number of correct answers were given (counter condition).
”
I made this into a thread for ease of tracking. I also updated what I’ve written so far.
