Assignment NO : 2 Function & Objects

: Write PHP script to define an interface which has methods area(), volume(). Define constant PI. Create a class cylinder which implements this interface and calculate area and volume.

Program 1 : Write PHP script to define an interface which has methods area(), volume(). Define constant PI. Create a class cylinder which implements this interface and calculate area and volume.

Program 1 : Write PHP script to define an interface which has methods area(), volume(). Define constant PI. Create a class cylinder which implements this interface and calculate area and volume.

Answer : 

File : Index.php

Assignment NO : 2 Function & Objects Assignment NO : 2 Function & Objects Reviewed by technical_saurabh on December 24, 2020 Rating: 5

No comments:

Powered by Blogger.