79670782

Date: 2025-06-18 14:17:28
Score: 1
Natty:
Report link

@startuml

' Define interfaces

interface ITriangle {

+DisplayArea()

}

interface IRectangle {

+DisplayArea()

}

' Define class

class TestShape {

-triangleBase : double

-triangleHeight : double

-rectangleLength : double

-rectangleWidth : double

+TestShape(tBase: double, tHeight: double, rLength: double, rWidth: double)

+DisplayAllAreas()

{abstract} +ITriangle.DisplayArea()

{abstract} +IRectangle.DisplayArea()

}

' Define class Program with Main method

class Program {

+Main(args: string\[\]) : void

}

' Relationships

TestShape ..|> ITriangle

TestShape ..|> IRectangle

@enduml

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @startuml
  • User mentioned (0): @enduml
  • Low reputation (1):
Posted by: Ayub Shahid