Differences

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

Link to this comparison view

poo:laboratoare:13 [2021/01/19 11:34]
carmen.odubasteanu
poo:laboratoare:13 [2023/12/09 11:42] (current)
carmen.odubasteanu
Line 1: Line 1:
-===== Laboratorul ​13. =====+===== Laboratorul ​11. =====
  
 === Problema 1 - Singleton ​ === === Problema 1 - Singleton ​ ===
Line 42: Line 42:
         User studentC = UserFactory.createUser("​Student",​ "​C",​ "​Ionescu"​);​         User studentC = UserFactory.createUser("​Student",​ "​C",​ "​Ionescu"​);​
  
-        User mother = UserFactory.createUser("​Parent",​ "MAC", "​Ionescu"​);​ +        User mother = UserFactory.createUser("​Parent",​ "M_AC", "​Ionescu"​);​ 
-        User father = UserFactory.createUser("​Parent",​ "MAC", "​Ionescu"​);​+        User father = UserFactory.createUser("​Parent",​ "T_AC", "​Ionescu"​);​
                
         User teacher = UserFactory.createUser("​Teacher",​ "​Teacher",​ "​Georgescu"​);​         User teacher = UserFactory.createUser("​Teacher",​ "​Teacher",​ "​Georgescu"​);​
Line 224: Line 224:
 } }
 public class ScoreVisitor implements Visitor { public class ScoreVisitor implements Visitor {
-  private HashMap<​Teacher,​ ArrayList<​Pair<​Student,​ String,,! Double>>>​ examScores;​ +  private HashMap<​Teacher,​ ArrayList<​Pair<​Student,​ String, Double>>>​ examScores;​ 
-  private HashMap<​Assistant,​ ArrayList<​Pair<​Student,​ String,,! Double>>>​ partialScores;​+  private HashMap<​Assistant,​ ArrayList<​Pair<​Student,​ String, Double>>>​ partialScores;​
   public ScoreVisitor(HashMap<​Teacher,​ ArrayList<​Pair<​Student,​ String, Double>>>​ examScores, HashMap<​Assistant,​ ArrayList<​Pair<​Student,​ String, Double>>>​ partialScores){   public ScoreVisitor(HashMap<​Teacher,​ ArrayList<​Pair<​Student,​ String, Double>>>​ examScores, HashMap<​Assistant,​ ArrayList<​Pair<​Student,​ String, Double>>>​ partialScores){
        ​this.examScores=examScores;​        ​this.examScores=examScores;​
Line 256: Line 256:
  
 <​note>​ Folositi pentru testare main-ul de la **Factory**! </​note> ​ <​note>​ Folositi pentru testare main-ul de la **Factory**! </​note> ​
-<​hidden>​{{:​poo:​laboratoare:​arhiva_13.zip|Arhiva laborator}}</​hidden>​ +<​hidden>​{{:​poo:​laboratoare:​arhiva_13.zip|Arhiva laborator}} 
 +</​hidden>​
  
poo/laboratoare/13.1611048842.txt.gz · Last modified: 2021/01/19 11:34 by carmen.odubasteanu
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