summaryrefslogtreecommitdiff
path: root/advanced_python
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-11-17 01:47:41 +0530
committerPrabhu Ramachandran2017-11-17 01:47:41 +0530
commit89158d47b5f02b4f2029cbf70b7fb47aa6ae01b5 (patch)
tree52a90477f804733385bbfaa7d6766aadf700bedc /advanced_python
parent11398aa97298dd72391e92ff7e9b687f8cb1fe9f (diff)
downloadpython-workshops-89158d47b5f02b4f2029cbf70b7fb47aa6ae01b5.tar.gz
python-workshops-89158d47b5f02b4f2029cbf70b7fb47aa6ae01b5.tar.bz2
python-workshops-89158d47b5f02b4f2029cbf70b7fb47aa6ae01b5.zip
Some minor changes.
Diffstat (limited to 'advanced_python')
-rw-r--r--advanced_python/oop_inheritance.tex2
1 files changed, 2 insertions, 0 deletions
diff --git a/advanced_python/oop_inheritance.tex b/advanced_python/oop_inheritance.tex
index 0077556..d9f7558 100644
--- a/advanced_python/oop_inheritance.tex
+++ b/advanced_python/oop_inheritance.tex
@@ -160,10 +160,12 @@ tut.needs_computer
\frametitle{Some points}
\begin{itemize}
\item \lstinline{Tutorial} is a subclass (or child) of \lstinline{Talk}
+ \item \lstinline{Tutorial} is derived from (inherits from) \lstinline{Talk}
\item \lstinline{Talk} is the base class (or parent class)
\item Only the \lstinline{__init__} has been changed
\item This is called overriding
\item \lstinline{super} ensures that the parent class is called
+ \item Calling the parent is not automatic
\end{itemize}
\end{frame}