what is the code for this php prog?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Apurva Surve
    New Member
    • Aug 2010
    • 1

    #1

    what is the code for this php prog?

    Define an interface which has methods area(),volume() . Define constant PI. Create a class cylinder which implements this interface and calculate area and volume.(Hint: Use Define)
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    We're really not going to do your homework. Please read our Guidelines on posting Homework questions.

    Steven

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      Define constant PI.
      just to impress your teacher: why re-inventing the wheel? nearly every programming language has an implementation of π.

      Comment

      Working...