---
title: Triggers, classes, instantiation - Oh My!
description: Triggers, classes, instantiation - Oh My!
---

- [Home](https://purplenerd.com/#home)
- [Services](https://purplenerd.com/rev-ops-services)
- [Contact](https://purplenerd.com/blog/2011/07/15/classes-triggers#contact)
- [Blog](https://purplenerd.com/blog)
- [Partners](https://purplenerd.com/partners)

# Triggers, classes, instantiation - Oh My!

[Dabbling Dev](https://purplenerd.com/blog/tag/dabbling-dev)

![Becka](https://purplenerd.com/hubfs/Imported_Blog_Media/cert.jpg?noresize) [Becka](https://purplenerd.com/blog/author/sfdcnerd)

There are now only **45** days until [Dreamforce](http://dreamforce.com) & I promised to share enough so that you could sneak your way into the Hackathon (or if that's not your thing, just impress new people that you talk to), so let's jump right in!

A **trigger** is a chunk of code that does things (vague, I know). They look at a specific object, and can perform actions based on criteria set around that object. You can design them to run either before or after a insert, update or delete to that object in Salesforce.  
![](https://static.hsstatic.net/BlogImporterAssetsUI/ex/missing-image.png "Factory")I think of **classes** as the object factory - it's what makes your objects. You could also think of is as the blueprint for your object (this is the analogy that is used in the DEV 531 class) - it defines what the object is & the actions that object can do. Taking this back to the Salesforce world, think of it as the fields on your sObject & what that sObject can do.

Finally, **instantiation** (try saying it - it's fun & you'll feel really smart) is when you fire up that object factory & say "Go!" It is simply the act of creating an object from a class. I like this one the most only because I feel smart using it.

Thanks for reading! I hope my vocab series is useful & please provide feedback so that I can tune this up for the upcoming posts. See you next week, or join me over on [Facebook](https://www.facebook.com/ForceBehindtheForce)!

## Recent Blog Posts

[![Recent Blog](https://purplenerd.com/hubfs/Imported_Blog_Media/oct6-user-group.jpg)](https://purplenerd.com/blog/im-finally-going-to-unbound)

[Events](https://purplenerd.com/blog/tag/events) [Hubspot](https://purplenerd.com/blog/tag/hubspot) [IRL](https://purplenerd.com/blog/tag/irl)

#### [Ten Years In and I'm Finally Going to UNBOUND!](https://purplenerd.com/blog/im-finally-going-to-unbound)

Every September my LinkedIn feed fills up with show floor ...

## Recent Blog Posts

[![Recent Blog](https://purplenerd.com/hubfs/Hand%20writing%20with%20a%20black%20mark%20on%20a%20transparent%20board%20-%20Smiley.jpeg)](https://purplenerd.com/blog/7-ways-revops-consulting-improves-customer-journeys)

[Rev Ops](https://purplenerd.com/blog/tag/rev-ops) [Listicle](https://purplenerd.com/blog/tag/listicle)

#### [7 Ways RevOps Consulting Improves Customer Journeys](https://purplenerd.com/blog/7-ways-revops-consulting-improves-customer-journeys)

When sales, marketing, and customer success aren't rowing ...

## Recent Blog Posts

[![Recent Blog](https://purplenerd.com/hubfs/Beautiful%20young%20lady%20thinking%20with%20question%20marks%20overhead-1.jpeg)](https://purplenerd.com/blog/10-questions-before-hiring-a-revops-consultant)

[Rev Ops](https://purplenerd.com/blog/tag/rev-ops) [Consultant](https://purplenerd.com/blog/tag/consultant)

#### [10 Questions Before Hiring a RevOps Consultant](https://purplenerd.com/blog/10-questions-before-hiring-a-revops-consultant)

The revenue operations consulting market has exploded, but ...

- <https://www.linkedin.com/company/purple-insights/>
- <http://www.twitter.com/sfdc_nerd>
- <http://www.instagram.com/sfdc_nerd>

© 2026 by Purple Insights Inc

[info@purplenerd.com](mailto:info@purplenerd.com)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Becka",
    "url" : "https://purplenerd.com/blog/author/sfdcnerd"
  },
  "dateModified" : "2025-04-17T14:17:20.374Z",
  "datePublished" : "2011-07-15T14:00:24.000Z",
  "headline" : "Triggers, classes, instantiation - Oh My!",
  "mainEntityOfPage" : {
    "@id" : "https://purplenerd.com/blog/2011/07/15/classes-triggers",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://purplenerd.com/hubfs/logo-transparent-svg-1.svg"
    },
    "name" : "Purple Insights"
  }
}
```