答案1
您可以根据自己的喜好调整以下内容,这足以帮助您入门。
\documentclass[tikz,border=3.14]{standalone}
\begin{document}
\begin{tikzpicture}
\path
node[circle,draw,text width=6em,align=center] (main){main}
(main.east) ++(0.25,0) node[anchor=west] (b) {balance}
(b.north west) ++(0, 0.1) node[anchor=south west](w) {withdraw}
(b.south west) ++(0,-0.1) node[anchor=north west](t) {transfer}
;
\draw[fill=darkgray]
(w.north east) ++(.5, .5) coordinate(rtl)
(rtl|-t.south east) ++(.5,-.5) coordinate(rbr) rectangle (rtl)
;
\path
(rbr) -- node[below]{Wall} (rtl|-rbr)
(rbr|-main) ++(2,0)
node[circle,draw,text width=6em,align=center](data){bank Account data}
(rtl) ++(-1,0) node[anchor=south east,font=\bfseries]{Public}
(rtl-|rbr) ++( 1,0) node[anchor=south west,font=\bfseries]{Private}
;
\foreach\x in{b,w,t}
\draw[->] (\x-|w.east) -- (\x-|data.west);
\end{tikzpicture}
\end{document}