Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Arduino.h>
- class subject {
- public:
- String subjectname;
- String classroom;
- };
- void setup() {
- Serial.begin(115200);
- subject math;
- math.classroom = "A1";
- Serial.print("Classroom is: ");
- Serial.println(math.classroom);
- }
- void loop() { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement