Skip to content

Commit ff954ec

Browse files
Create #ifndef #define
1 parent 149d60b commit ff954ec

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

#ifndef #define

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// #ifndef & #define
2+
// We created separate header and source files for our class, which resulted in this header file.
3+
4+
#ifndef MYCLASS_H
5+
#define MYCLASS_H
6+
7+
class MyClass
8+
{
9+
public:
10+
MyClass();
11+
protected:
12+
private:
13+
};
14+
15+
#endif // MYCLASS_H

0 commit comments

Comments
 (0)