Lab 08 (UML Diagrams & Code)
Lab 08 (UML Diagrams & Code)
The following simple states that class A uses/depends on class B in some way. It’s a way to
broadly.
Interface shape
{
Void draw( )
}
Class circle implements shape
{
Void draw( )
{
System.out.println(“circle”);
}
}
CriteriaFeMale.java
CriteriaSingle.java
AndCriteria.java
OrCriteria.java
Step 4: Use different Criteria and their combination to filter out persons.
CriteriaPatternDemo.java
Practice Question: