Implementing custom class with scheduler

I’ve been working on a custom class for a project that i wanted to do. I wrote the class but when I try to run it in my program I get a whole bunch of errors and I’m not sure where I’m going wrong. I’m new to coding arduinos, please be gentle.

I think its an error with the scheduler class (or the way I’m using it rather) since when only put things in the regular void loop the program verifies without a problem

if it is the scheduler class can someone explain to me what I’m doing wrong and how to do it right? I’ve already checked out the page explaining the class and this is the code i wrote based off that

FadingJar.H

/*
  FadingJar.h - Library for fading
  Created by Brandon Cortes, Nov, 2015.
  Released into the public domain.
*/


#ifndef FadingJar_h
#define FadingJar_h

#include "Arduino.h"

class FadingJar
{
 public:
 FadingJar(int pin);
 void fadeIn();
 void fadeInRand(int max);
 void fadeInRand(int min, int max);
 void fadeInComplete(int min, int max, int delayTime, int fadeVal);
 
 void fadeOut();
 void fadeOutRand(int max);
 void fadeOutRand(int min, int max);
 void fadeOutComplete(int min, int max, int delayTime, int fadeVal);
 
 void fade();
 void fadeRand(int max);
 void fadeRand(int min, int max);
 void fadeComplete(int min, int max, int delayTime, int fadeVal);
 
 private:
 int _pin;
 
};

#endif

FadingJar.cpp

/*
  FadingJar.cpp - Library for fading leds in jar.
  Created by Brandon Cortes, November, 2015.
  Released into the public domain.
*/

#include "Arduino.h"
#include "FadingJar.h"

FadingJar::FadingJar(int pin)
{
  _pin = pin;
  
}

/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////


void FadingJar::fadeIn()
{


             // fade in from min to max in increments of 5 points:
            for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }
}


void FadingJar::fadeInRand(int max)
{


             // fade in from min to max in increments of 5 points:
            for (int fadeValue = 0 ; fadeValue <= max; fadeValue += 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }
}
void FadingJar::fadeInRand(int min, int max)
{


             // fade in from min to max in increments of 5 points:
            for (int fadeValue = min ; fadeValue <= max; fadeValue += 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }
}

void FadingJar::fadeInComplete(int min, int max, int delayTime, int fadeVal)
{


             // fade in from min to max in increments of 5 points:
            for (int fadeValue = min ; fadeValue <= max; fadeValue += fadeVal) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(delayTime);
            }
}

/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////


void FadingJar::fadeOut()
{
            // fade out from max to min in increments of 5 points:
            for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }
}

void FadingJar::fadeOutRand(int max)
{
            // fade out from max to min in increments of 5 points:
            for (int fadeValue = max ; fadeValue >= 0; fadeValue -= 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }
}

void FadingJar::fadeOutRand(int max, int min)
{
            // fade out from max to min in increments of 5 points:
            for (int fadeValue = max ; fadeValue >= min; fadeValue -= 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }
}

void FadingJar::fadeOutComplete(int max, int min, int delayTime, int fadeVal)
{
            // fade out from max to min in increments of 5 points:
            for (int fadeValue = max ; fadeValue >= min; fadeValue -= fadeVal) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(delayTime);
            }
}

/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////


void FadingJar::fade()
{
             // fade in from min to max in increments of 5 points:
            for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }
            
                        // fade out from max to min in increments of 5 points:
            for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }

}

void FadingJar::fadeRand(int max)
{
             // fade in from min to max in increments of 5 points:
            for (int fadeValue = 0 ; fadeValue <= max; fadeValue += 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }
            
                        // fade out from max to min in increments of 5 points:
            for (int fadeValue = max ; fadeValue >= 0; fadeValue -= 5) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(30);
            }

}

void FadingJar::fadeComplete(int max, int min, int delayTime, int fadeVal)
{
             // fade in from min to max in increments of 5 points:
            for (int fadeValue = min ; fadeValue <= max; fadeValue += fadeVal) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(delayTime);
            }
            
                        // fade out from max to min in increments of 5 points:
            for (int fadeValue = max ; fadeValue >= min; fadeValue -= fadeVal) {
              // sets the value (range from 0 to 255):
              analogWrite(_pin, fadeValue);
              // wait for 30 milliseconds to see the dimming effect
              delay(delayTime);
            }

}

this is the main program that is implementing the class (its not finished, I’m trying to resolve errors with my custom class first)

this is the error i get when i try verifying

sketch_nov25b:35: error: 'fadingJar11' does not name a type
   fadingJar11.fade();
   ^
exit status 1
'fadingJar11' does not name a type

can someone please tell me what I’m doing wrong???

It's an upper/lowercase typo. The error message shows you where it is.