![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Object Oriented Programming
This column is a study notes of Object Oriented Programming (OOP) using C++.
LingzeHu2020
这个作者很懒,什么都没留下…
展开
-
8. OOP: Smart Pointer
Smart Pointer in C++ 0. Overview We have touched the pointer in C++ previously in Linked List part. This time, we’re going to handle the smart pointer in C++. Before dig into the detail, let’s have a ...原创 2020-04-28 05:41:48 · 231 阅读 · 0 评论 -
5. OOP: Initialization
Initialization 0. Overview It a simple concept distinguish: what default constructor, constructor with values, and initializer_list. 1. default < constructor < initializer_list When we create a ...原创 2020-03-09 04:49:12 · 145 阅读 · 0 评论 -
4. OOP: Operator Overloading
Operator Overloading 0. Overview We have some clue of package < iostream> now. However, for now, we could only do the operator based on default data type, such as int, char. What if we want to d...原创 2020-03-09 04:10:58 · 187 阅读 · 0 评论 -
5. Study Note of Object Oriented Programming (OOP): STL II
STL With Overloading Overview: In this section, we did not discuss new STL data type. But we covered three ways of initializing data member of a class: default constructor, constructor with values, an...原创 2020-01-29 11:39:39 · 143 阅读 · 0 评论 -
4. OOP: STL(vector, list, map)
STL(vector, list, map) Overview: STL is the soul of C++. Remember this, mastering the STL is master the most part of C++. Though array is more efficient than vector, vector is still the feature of C++...原创 2020-01-25 15:25:44 · 235 阅读 · 1 评论 -
3. OOP: Linked List
Linked List 1. Overview Today’s topic is Linked List. The code structure would be: class Node, class LinkedList, definitions of functions of LinkedList, and Main() function. Linked list was mentioned...原创 2020-01-18 13:52:35 · 170 阅读 · 0 评论 -
2. OOP: Call by Value vs. Call by Reference
Call by Value vs. Call by Reference 1. Call by Value A new copy is created and used inside the function. Any change of this copy will not affect the original object. void f1(int i){ i++; } 2. Call by...原创 2020-01-18 13:38:44 · 143 阅读 · 0 评论 -
1. OOP: Basic knowledges in C++
Introduction to C++, arrays, pointers, dynamic memory allocation Before the topic At the top of the file, we usually includes package <iostream>, which is related to input and output, contains f...原创 2020-01-16 13:45:22 · 172 阅读 · 0 评论