adding new product

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    adding new product

    when a user adds a new flower i need to create a new flower class for that flower
    ...how to do that?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by oll3i
    when a user adds a new flower i need to create a new flower class for that flower
    ...how to do that?
    You can't do that without a whole lot of trickery-dickery. Are you sure you need
    to create a new class? Wouldn't a new set of attributes of a flower be enough?

    kind regards,

    Jos

    Comment

    • oll3i
      Contributor
      • Mar 2007
      • 679

      #3
      yes i need to create a new class

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by oll3i
        yes i need to create a new class
        Well, if you're sure about that you have to type in the entire class definition
        yourself. If you compare your new class to one of your existing Flower classes
        what's different then? The values of the members? If so, you don't need a new
        class at all.

        kind regards,

        Jos

        Comment

        • oll3i
          Contributor
          • Mar 2007
          • 679

          #5
          so what should i do?

          Comment

          • Ganon11
            Recognized Expert Specialist
            • Oct 2006
            • 3651

            #6
            Can you give us a larger description of what you want to do?

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by oll3i
              so what should i do?
              When a user adds a new flower, instantiate a new Flower object using the one Flower class that you already have.

              Comment

              Working...