Constructing my own class for LED , the main.cpp and header file

Hello friends. I am completely new to mbed os system. I would like to Construct my own class for LED as an output , the main.cpp and header file. How can I build this project and link all of them together?

Hello,

your question/request is probably not so clear.

Introduction - Quick start | Mbed OS 6 Documentation, but instead of Online compiler use Keil Studio (arm.com) as a build tool.
For a LED control you do not need use your own class, Mbed already do that for you DigitalOut - API references and tutorials | Mbed OS 6 Documentation

BR, Jan