Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 딥러닝
- 리눅스
- mysql
- backend
- 경제
- 러닝스칼라
- Javascript
- Scala
- Web
- 백엔드
- 러닝 스칼라
- 인공지능
- 챗GPT
- hacking
- 웹해킹
- hackthissite
- php
- Linux
- BOF 원정대
- 파이썬
- Shellcode
- hackerschool
- flask
- webhacking
- BOF
- deep learning
- c++
- c
- ChatGPT
- Python
Archives
- Today
- Total
목록inheritance (1)
jam 블로그
[C++] 007. 상속(Inheritance)의 이해
I. 상속의 기본 개념 아래의 소스를 보자 class Person { int age; char name[20]; public: int GetAge()const { return age; } const char* GetName() const { return name; } Person(int _age=1,char* _name = "noname") { age = _age; strcpy(name, _name); } }; class Student : public Person { char major[20]; public: Student(char* _major) { strcpy(major,_major); } const char* GetMajor()const { return major; } void ShowData() ..
개발 및 관련 자료/C
2013. 5. 12. 20:13