- បង្កើត project ក្នុង CodeBlocks
![](https://i0.wp.com/ask.osify.com/files/2021/07/1.jpg?resize=580%2C233&ssl=1)
- បង្កើត class ថ្មី
- ចូលទៅកាន់ File -> New -> Class…
![](https://i1.wp.com/ask.osify.com/files/2021/07/2.jpg?resize=580%2C233&ssl=1)
វានឹងបង្ហាញផ្ទាំងដូចខាងក្រោម
![](https://i2.wp.com/ask.osify.com/files/2021/07/3.jpg?resize=559%2C576&ssl=1)
យើងទទួលបាន
![](https://i2.wp.com/ask.osify.com/files/2021/07/4.jpg?resize=580%2C436&ssl=1)
ចូលទៅកាន់ ClassA.cpp ដើម្បីសរសេរកូដបន្ថែមសម្រាប់ display
![](https://i0.wp.com/ask.osify.com/files/2021/07/5.jpg?resize=517%2C202&ssl=1)
ដើម្បីដំណើរការកូដក្នុង ClassA បានលុះត្រាតែយើងធ្វើការ import វាចូលទៅក្នុង main() function
![](https://i2.wp.com/ask.osify.com/files/2021/07/6.jpg?resize=488%2C288&ssl=1)
3. ដំណើរការកម្មវិធី
![](https://i1.wp.com/ask.osify.com/files/2021/07/8.jpg?resize=430%2C121&ssl=1)