|
-
May 1st, 2013, 12:15 AM
#11
Re: Area and volume of cylinder
Ninja Thank you for answer,
I think i couldnt explain question clearly;
As a question;
1. r and h have to input from keyboard but you gave value them and as double.
2. r and h can input from keyboard and may be integer, double or float so that calculation of volume() and area() can give permission to the polymorphism.
3.Area() and Volume() functions must be declared as a class of member functions.
I would like to thank to the nuzzle and 2kaud too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|