목록C++ 17 (1)
일상 코딩
[C++/8.1] 객체지향 프로그래밍과 클래스
#include #include #include using namespace std; // Object(객체) - 코드로 구현한 단어를 class라 부른다. // class Friend{ //sturct는 아 코드가 안들감. public: // access specifier (public, private, protected(상속 단원)) string m_name; string m_address; int m_age; double m_height; double m_weight; void print(){ cout
C++/따배C++ 08강 객체지향 기초
2021. 10. 20. 02:44