"Has a" relation between Objects as in memory (RAM)

× "Is a" and "Has a" relation "Has a" relation Arrays as in memory Two Dimensional Arrays Exception Handling Variable, Object & Reference Multi-threading Website Design / Development Story of JEE modules
× JAVA, JEE, SQL: Online Private Tutoring Project based Training Concept based Training Basic Java:           $180 Advanced Java:     $300
(Threads,Sockets,JDBC,GUI)
Advanced Java:     $300
(with games projects like
PcMan, PingPong, TicTacToe)
Author: Bharat Chhajer

Overview

There are two kinds of relations in Java between classes. Is a and Has a. In other words, Inheritance and Association. Following diagram depicts "Has a" relation between Objects of Person class and Address class. So, person "has a" address.

Diagram showing Has a relation between classes / objects in Java.

Author: Bharat Chhajer