본문 바로가기 메뉴 바로가기

Studying programming

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Studying programming

검색하기 폼
  • Jimin's Programming (194)
    • Algorithms (54)
    • JavaScript (16)
    • Vue.js (3)
    • Node.js (3)
    • React.js (7)
    • React Native (0)
    • Spring Boot (13)
    • JAVA (58)
    • C++ (17)
    • Programming (19)
    • Computer basics (4)
  • 방명록

C++ (17)
Copy constructor(Deep copy, Shallow copy) in C++

Copy constructor A copy constructor is a constructor that copies all the information of an object by passing the object as an argument to a function. The compiler defines a default copy constructor if copy constructor is not defined. Usually, a copy constructor is used for copying objects. For example, in a game, you use it to create multiple monsters. The basic form of a copy constructor 123cla..

C++ 2018. 11. 9. 07:11
Inheritance and Overriding in C++ with simple example

Inheritance C++ commonly uses inheritance functionality to prevent unnecessary copy which could cause duplication and severe errors. It allows to create many similar classes from a base class and performs them differently. Even though parent class has many child classes, only the class, that we want to change, can be modified without affecting other classes. Less code and errors mean less expens..

C++ 2018. 11. 7. 06:47
Constructor and Destructor in C++

Constructor and Destructor with simple example code - Constructors are called as soon as an object is created - It does not have a return type and has the same name as class name. - In case there is no constructor or destructor, the compiler creates default constructor or destructor but if there is at least one constructor, the default constructor is not created by default. - They both have to b..

C++ 2018. 11. 6. 15:28
Encapsulation (getters and setters) in C++

Encapsulation (getters and setters) in C++ In C++, encapsulation is a very popular feature to hide data. All data members have to be private so outside entities are not able to access the data directly. It protects the data from modifying. If change is needed, getter and setter function should be set to access the private data from outside. Example code

C++ 2018. 11. 6. 12:34
Reference in C++

Reference in C++ the lvalue can only be assigned to ReferenceReference is alias which is another name of existing variablePointer has a different address but the Reference has the same address with the variable. Address of the variable does not need to be copied Example code Result

C++ 2018. 11. 6. 08:38
Class and Object in C++

Class and Object in C++ Data and functions are created in class and an object is created through a class.How to declare an object is almost the same way which we declare normal variables.Class members are private by default.To allocate memory, a name should be given as an instance Example code

C++ 2018. 11. 6. 06:26
이전 1 2 3 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 프로그래머스 알고리즘문제
  • HashMap
  • hackerrank
  • repeat()
  • java
  • spring boot application
  • hackerrank javascript solution
  • hackerrank javascript
  • Collection Framework
  • algorithm
  • math.abs
  • C++
  • equals()
  • Object type casting
  • hackerrank solution
  • easy javascript algorithm
  • 프로그래머스
  • compareTo()
  • ... in Javascript
  • easy algorithm
  • Javascript Algorithm
  • 프로그래머스 알고리즘
  • rest parameter
  • code refactoring
  • substring()
  • HackerRank Algorithm
  • javascript
  • 알고리즘
  • string class in java
  • math.max
more
«   2025/07   »
일 월 화 수 목 금 토
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 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바