Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //TODO #1 Declare a variable whose type is Course__c named newCourse
- // and initialize it to a newly constructed Course__c sObject,
- // assigning the field Name the value '[104] Introduction to Programming',
- // the field Course_Description__c the value 'Learn the basics of programming with OOP',
- // the field Status__c the value 'Active',
- // the field Duration__c the value 5.
- Course__c newCourse = new Course__c(Name = '[104] Introduction to Programming',
- Course_Description__c = 'Learn the basics of programming with OOP',
- Status__c = 'Active',
- Duration__c = 5);
- //TODO #2 Use the insert statement to insert newCourse into the database.
- insert newCourse;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement