CSE 110 ASU

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What is a constructor in java?

Creates an object from a class template but does not return a value

What is a for loop?

It repeats things like other programming statements and blocks of code automatically until it is false

What are some examples of variables

Private String nameOfStaff; Private final int hourlyRate = 30; Private int hoursWorked

What is an example of a class

Public class ManagementStaff

What is do while loop ?

This code is repeated until the condition becomes false. Condition also has a semicolon at the end

What is a nested loop?

a loop inside another loop

What does the "Final" word do in coding?

a value that cannot be changed after it is created

what does a class contain in object oriented programming

constructors, methods, and variables

What is the syntax for a for loop?

for(intial value; test condition; update;) { do some task; }

What is Encapsulation in Object-Oriented Programming (OOP)?

hides data & behavior

What does the syntax look like for a do while loop

int counter = 100; do { system.out.println(" Counter = " + counter); counter++ } while (counter < 0);

What is a while loop syntax?

int counter = 5 while (counter > 0) { System.out.println(" Counter = " + counter); counter = counter - 1 }

what is an example of a constructor in java?

public Staff (String firstname, String lastname)

What else can classes be?

public or private

what is an example of a method

public void printMessage( ); { System.out.println("CalculationPay" + ...) }

What is an if/else statement?

test a certain condtion and stops when it finallly meets it

What is a method in java?

A block of code that performs a certain task

What is a class in coding

A blueprint of the building


Ensembles d'études connexes

BUS/475: Integrated Business Topics - Week 4

View Set

Jordan midterm history flashcards 120

View Set

Greece: Archaic & Classical Period, Greece: Late Classical Period & Hellenistic Period, Survey of Art I - Day 9 - Classic Greece, Survey of Art I - Day 14 - Exam 2 Study Guide (Days 8-13), Survey of Art I - Day 10 - Late Classical, Hellenistic Period...

View Set

Common Probability Distributions

View Set