help with classes

This is a discussion on help with classes within the C++ Programming forums, part of the General Programming Boards category; Hi every one i am new at oop and i really need help in this assigment i have to create ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    26

    help with classes

    Hi every one i am new at oop and i really need help in this assigment i have to create a class Rectange. the class has attributes Length and width each of which defoult to 1. It has to member functions that caculates the perimeter and the area of the rectange. I has set and get function bor both length and width . the set funciton should vertify that length and width are each floating point numbers larger than 0.0 and less then 20.0

    can some one just help me how to start this programm and then i will get the idea how to do the rest

    thank you
    C++ Is cool

  2. #2
    Lead Moderator kermi3's Avatar
    Join Date
    Aug 1998
    Posts
    2,595
    Try this. That should help you get started.

    kermi3
    Kermi3

    If you're new to the boards, welcome and reading this will help you get started.
    Information on code tags may be found here

    - Sandlot is the highest form of sport.

  3. #3
    Veni Vidi Vice
    Join Date
    Aug 2001
    Posts
    343
    And this one is a masterpiece

    Pay special attention to Polymorphic OOP thread.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you Initialize all classes once with New?
    By peacerosetx in forum C++ Programming
    Replies: 12
    Last Post: 07-02-2008, 11:47 AM
  2. Multiple Inheritance - Size of Classes?
    By Zeusbwr in forum C++ Programming
    Replies: 10
    Last Post: 11-26-2004, 09:04 AM
  3. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-24-2004, 12:22 AM
  4. Exporting VC++ classes for use with VB
    By Helix in forum Windows Programming
    Replies: 2
    Last Post: 12-29-2003, 05:38 PM
  5. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 04:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21