소스 검색

OOP Revisions

Added a bit of explanation around initialization and instantiation.
Mentioned what a wrapper function is.
Revised possible typo(s).
Clarified oop_init.py comments.
d-s-1 8 년 전
부모
커밋
3c1833fb72
2개의 변경된 파일6개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 4
      oop.md
  2. 2 1
      programs/oop_init.py

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 4 - 4
oop.md


+ 2 - 1
programs/oop_init.py

@@ -7,5 +7,6 @@ class Person:
 
 p = Person('Swaroop')
 p.say_hi()
-# The previous 2 lines can also be written as
+# We can get the same output by
+# rewriting the previous 2 lines as
 # Person('Swaroop').say_hi()