Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ShujiaHuang committed Jan 5, 2022
1 parent adfecd9 commit f3e36f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions practice/questions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1. 不要在构造函数中再次调用构造函数

由于你再次调用的构造函数在原来的构造函数中是局部函数,所以再次调用的构造函数的所有的量可能都是局部变量,它在生命周期结束时,会面临被析构的危险,所以再次使用时就可能是垃圾值。





0 comments on commit f3e36f3

Please sign in to comment.