This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public with sharing class CommentingOnCodeExercise { | |
| /** | |
| * Your Assignment is to add comments describing what is being done in the methods below. | |
| * Call out the concepts you learned in your readings and in class. | |
| */ | |
| //define a method named cartValues | |
| public static void cartValues() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void youDoThisPart() { | |
| /*Your assignment is to write two comments below this one. They should describe the few lines of code you se below. | |
| Simply describe what the code is doing based on what you learned from readings and in class. | |
| Make one as a single line comment using the // notation. Make the other one a multi line comment using the /* notation. | |
| When you're done, save this file so that it is compiled and stored in Salesforce. */ | |
| /*declare a variable with name i and type integer | |
| establish the value of variable i to 2 */ | |
| Integer i; |