Classes & Decision Trees
April 1, 2008 at 5:33 pm (ICE3M, ICE4M)
Tags: classes, conditional statments, conditionals, decision trees, if statements, programming
Here is the pdf version of our introduction note on Classes. The following are just some key points.
Remember that the class of objects refers to the concept, or “what it means to be that thing.” The instance of the object refers to s specific thing or “that thing over there.”
It is the difference between “Tell me about trees” and “Tell me about that tree right there.”
Classes have properties, but an instance of the class (object) has actual values. So instead of just having “number-of_leaves” as a property, it has “number_of_leaves = 345″ as a property with a value.
Decision Trees
Decision trees are also referred to as “if then else” statements. Theey are also called “conditional statements” because something is done when a condition is met. When an if -else statement occurs inside of another one, it is called a nested if statement.