bootcamper bootcamper SetUp Docs Reps Blog
bootcamper bootcamper

U3L05 - method inputs

This lesson drills what Trevor teaches in U3L05

Pre-requirements:

  • You have performed each of previous drills to reach a top speed, and then repeated top speed 10x
  • Follow this for all drills explainer
  • Or this if you haven't even installed the drills yet installation

Summary of what is drilled

A Disciplined Approach? holds that these items should never again allow any confusion in your mind about this list of what Trevor covered in this lesson:

COVERED IN THE LESSON

  • creating a method that sets the properties of an object

Instructor Administered Test

  • Create a new project
  • Create a new package
  • Create a new class with a new public static void main method
  • declare and assign an int variable named wahHoo of 73
  • create the class for Dinosoar with the String properties of weight, color, length
  • from the main method, declare and instantiate a Dinosoar object named wilbur
  • from the main method, set the properties of oscar using dot properties
  • create a method named getDetails within Dinosoar that returns a String explaining what the weight, color and length of the dinosoar
  • create a method named setDetails within Dinosoar that sets all relevant String properties of the weight, color and length of the dinosoar
  • print the wilbur object in the console and observe the details