BashOOP/example/script.sh
2021-12-28 00:44:16 +01:00

17 lines
196 B
Bash

#!/bin/bash
OOP_ROOT=..
. $OOP_ROOT/oop.sh # Import library.
importNamespace Example.shn
Example.Object t1 "Test"
Example.Object t2 "Example"
t1.print
t2.print
t1.name = "New name"
t1.print