Java_Composition: A class can have references to objects of other classes as members.
Question?: Should that be a Instance-variable of a class to call it as Composition Or it is also called as Composition, if it is a Local-variable ?
Demo: Preceding question for local reference-type variables at lines 5 and 6.
1 public class EmployeeTest
2 {
3 public static void main(String[] args)
4 {
5 Date birthday;
6 Date birth = new Date(12, 12, 1950);
7 }
8 }