/*
 * exampleStep1ClassSyntax.cpp
 * 
 * Author: Deborah R. Fowler
 * Date: Oct 19, 2019
 * 
 * Simple example to show the new function for creating objects
 */


#include <iostream>
using namespace std;

class Muppet
{
    public:
        int energy;
        void talk();
};

void Muppet::talk()
{
    cout << "\nHello, I'm a muppet";
};

int main()
{
        Muppet kermit;
        kermit.energy = 10;
        kermit.talk();
}

