Javatpoint Logo

has-a relation

By: chitti*** On: Sun Jan 29 00:42:24 IST 2017     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User
How to achive has-a relation and what is the purpose of using has-a relation in java?Up0Down

 
Image Created0Down

By: [email protected] On: Sun Jan 29 14:49:35 IST 2017 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
Its nothing but just u create a object of other class in other class.if u have a two classes like a Sample And Demo1 then object of Sample class U create in Demo1 class.Image Created0Down

By: [email protected] On: Mon Jan 30 23:29:37 IST 2017 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No