diff --git a/1st.cpp b/1st.cpp index 7c58524..73d70ee 100644 --- a/1st.cpp +++ b/1st.cpp @@ -14,3 +14,13 @@ public: // 熄滅 LED } }; + +class Motor : public Device { +public: + void turnOn() override { + // 啟動馬達 + } + void turnOff() override { + // 關閉馬達 + } +}; \ No newline at end of file