can someone explain this class problem to me?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deltamami0999
    New Member
    • Feb 2008
    • 16

    #1

    can someone explain this class problem to me?

    I'm having a hard time understanding objects and classes...this is the problem...Defin e a class named Movie with private fields for the title, year, and name of the director. Include public member functions. Write a program that declares an instance of the Movie class called myFavorite. Prompt the user and the member fields (properties), then display the properties to std out.

    all i have are the prototypes which are:

    void Movie:: setTitle(cstrin g);
    void Movie::setYear( int);
    void Movie::setDirec tor(string);
    void Movie::displayM ovie();

    i havent worked with cstrings in a long long time and i am confused where to start now
  • Studlyami
    Recognized Expert Contributor
    • Sep 2007
    • 464

    #2
    first i would read a tutorial or two on classes (Here's one for you). Then i would create the class structure where you declare the class then the functions and variable of that class. Then i would write the class functions. If you don't understand something specific about the tutorial (or any tutorial) or you get stuck on something else post up exactly what problem your running into and as always, the code associated with it.

    Comment

    Working...