-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.tex
51 lines (36 loc) · 1.31 KB
/
example.tex
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
\documentclass[customsubject]{efrei_report_card}
\title{Lab Report n\degree{1}}
\subtitle{test}
\author{Author}
\setupcourse{
name = Test,
color = 098658,
}
\begin{document}
\maketitle
\exercise{1 -- Concepts of encapsulation, inheritance, and polymorphism}{
\question{Encapsulation}{%
Encapsulation is the way, in Java, the user can assign an \textbf{access modifier} to limit the visibility of certain attributes or methods
}
\vspace{2mm}
\question{Setter and Getter}{
\begin{multicols}{2}
\textbf{Setter}\\
The setter method is a method used to make a private attribute writable by users.
\columnbreak
\textbf{Getter}\\
The getter method is a method used to make a private attribute readable by users.
\end{multicols}
}
\vspace{2mm}
\question{this and super}{
\begin{multicols}{2}
\textbf{this}\\
\emph{this} is an implicit parameter passed when calling a method of an object
\columnbreak
\textbf{Getter}\\
The getter method is a method used to make a private attribute readable by users.
\end{multicols}
}
}
\end{document}