Mistry Man

Mistry Man

  • NA
  • 1
  • 910

PHP OOP Interview Question

Jun 9 2016 3:45 AM
Hello everyone !
Need a solution for the following problem. Can anyone help me with this !
 
Create model classes that will properly represent the following constructs:

Define a Shape object, where the object is any two dimensional figure, and has the following characteristics: a name, a perimeter, and a surface area.

Define a Circle, retaining and accurately outputting the values of the aforementioned characteristics of a Shape.

Define a Triangle. This time, the name of the triangle should take into account if it is equilateral (all 3 sides are the same length), isoceles (only 2 sides are the same length), or scalene (no 2 sides are the same).