This is called when an object of a class is created. It can be used to set initial values for object attributes.
What is a constructor?
This means the method belongs to the Main class and not an object of the Main class
What is static?
stores text, such as "Hello". String values are surrounded by double quotes
What is a String?
variables are only accessible inside the region they are created
What is a Scope?
is about creating objects that contain both data and methods.
What is object-oriented programming?
a block of code which only runs when it is called.
You can pass data, known as parameters.
Also known as functions.
What is a method?
This modifier makes code only accessible within the declared class.
What is the private modifier?
stores integers (whole numbers), without decimals, such as 123 or -123
What is an int?
a class within a class
also called a nested class
What is an inner class?
This class is used to get user input
What is a Scanner class?
a special "class" that represents a group of constants
What is an enum?
This modifier makes code accessible in the same package and subclasses
What is a protected modifier?
stores floating point numbers, with decimals, such as 19.99 or -19.99
What is a float?
group related classes
Think of it as a folder in a file directory
What is a package?
Use extends keyword for a child class can do this from its parents class
what is Inheritance?
This means that this method does not have a return value
What is a void?
The code is accessible for all classes
What is public?
stores single characters, such as 'a' or 'B'. Char values are surrounded by single quotes
What is a char?
The daily double or 400
Child class has same method as Parent class but uses different code.
What is Polymorphism?
The daily double or 400
Attributes and methods are skipped when serializing the object containing them
What is transient?
multiple methods can have the same name with different parameters
What is method overloading?
The Daily Double or 500
The class cannot be inherited by other classes
What is final?
stores values with two states: true or false
is the technique of making a function call itself. This technique provides a way to break complicated problems down into simple problems which are easier to solve.
What is recursion?
The class cannot be used to create objects
What is abstract?