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 |
Tags
- diamond inheritance
- virtual function table
- 더 지니어스 양면포커
- delete function
- suffix return type
- increment operator
- this call
- vector capacity
- conversion constructor
- new&delete
- std::cout
- dynamic_cast
- placement new
- pointer to member data
- std::ostream
- vector size
- C++
- c++ basic practice
- discord bot
- member function pointer
- virtual function
- return by reference
- operator overloading
- c++ multi chatting room
- base from member
- std::endl
- constructor
- virtual inheritance
- std::vector
- virtual destructor
Archives
- Today
- Total
목록public (1)
I'm FanJae.

※ 본 포스트는 코드누리 C++ Basic 강의 내용을 보고 정리한 포스트입니다. 1. OOP(Object Oriented Programming)에 대한 필요성 이 개념은 C++에서 가장 중요한 개념인 '객체 지향 프로그래밍'에 대한 이야기를 해보고자 한다.OOP의 기본적인 개념과, 접근 지정자(private,public), 캡슐화(Encapsulation) 에 대해서도 얘기하고자 한다. 먼저, 사각형을 그리고(draw), 넓이를 구하는 함수에 대해 생각해보자.#include int getRectArea(int x1, int y1, int x2, int y2){ return (x2-x1) * (y2-y1);} void drawRect(int x1, int y1, int x2, int y2){ ..
C++/Basic
2024. 8. 12. 13:53