Differences

This shows you the differences between two versions of the page.

Link to this comparison view

poo-is-ab:laboratoare:03 [2024/10/25 11:10]
razvan.cristea0106 [Cuvântul cheie static]
poo-is-ab:laboratoare:03 [2025/01/19 22:28] (current)
razvan.cristea0106
Line 568: Line 568:
 </​code>​ </​code>​
  
-Deși membrul static **numarConifere** este privat noi ne propunem ​cumva să avem accest ​la el. Soluția este să implementăm un **getter** pentru acesta.+Deși membrul static **numarConifere** este privat noi totuși ​ne propunem să avem cumva acces la el. Soluția ​cea mai simplă ​este să implementăm un **getter** pentru acesta, astfel încât să respectăm și **principiul încapsulării datelor**.
  
 === Funcții statice === === Funcții statice ===
poo-is-ab/laboratoare/03.1729843837.txt.gz · Last modified: 2024/10/25 11:10 by razvan.cristea0106
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0