ExampleClass GitHub

๐Ÿ“Š Overview: 2 Properties 1 Constructor 2 Functions 1 Getters

๐Ÿ“ Description

Creates example object with initial inventory count

๐Ÿ• Last updated: 2025-12-10T11:45:22.861Z


๐Ÿ“‘ Table of Contents


Properties

Property Type Default Description
Title Text - The title of the item
Count Integer 0 Number of items in stock

Constructor

constructor

[๐Ÿ—๏ธ constructor]

Class constructor($InitialCount : Integer)

Creates example object with initial inventory count

Parameters:

Name Type Optional Description
$InitialCount Integer - -

Functions

Regular Functions

calculateValue

Function calculateValue($UnitPrice : Real) -> Real

Calculates total inventory value by multiplying count by unit price

Parameters:

Name Type Optional Description
$UnitPrice Real - -

Returns: Real


processOrder

Function processOrder($Quantity : Integer; $DiscountPercent : Real) -> Boolean

Processes order by reducing count if sufficient quantity available, returns success status

Parameters:

Name Type Optional Description
$Quantity Integer - -
$DiscountPercent Real - -

Returns: Boolean


Computed Attributes (Getters/Setters/Query/OrderBy)

ItemCount

[๐Ÿ” get only]

Function get ItemCount -> Integer

Returns the current item count

Returns: Integer



Generated from ExampleClass.4dm