Final Exam Flashcards
How can I make a line in processing?
line(x1,y2, x2, y2)
How can I make an ellipse in processing?
ellipse (x, y, width, height)
How can I make a rectangle in processing?
rect(x, y, width, height)
How can I make a triangle in processing?
triangle(x1, y1, x2, y2, x3, y3)
what does the keyword class mean?
declares class
what does the keyword extends mean?
tells the programmer that a class inherits attributes from another class.
what does the keyword implements mean?
declares a class that implements an interface.
what does the keyword abstract mean?
indicates that a class or a method is abstract and cannot be instantiated or declared.
what does the keyword package mean?
Declares a package for organizing classes, prevents naming conflicts.
what does the keyword public mean?
Lets the programmer know that this class can be used and extended into other classes.
what does the keyword private mean?
Let’s the programmer know that this class cannot be used and extended into other classes. Cannot be used in subclasses or subpackages.
what does the keyword protected mean?
Let’s the programmer know that this class cannot be accessed in another class but can be used in subclasses or subpackages. Less restrictive than private but more restrictive than public.
what does the keyword static mean?
This lets the programmer know that this variable, method, or sub-class can be accessed through all instances of the class.
what does the keyword final mean?
This lets the programmer know that the class, method, or variable is unchangeable and unextendable.
What does the wrapper class do?
Allows a primitive type to be stored as an object. Example: Integer ob1; int num1 = 70; ob1 = num1;