0

Can we use a object from a class in another class function?

Can any one clarify my doubt please

24th Feb 2019, 5:29 AM
Sai Venkat
Sai Venkat - avatar
2 Answers
+ 1
If I understood well, you don't know what is Object oriented programming. by the way, An Object is instance of a Class. so we can build objects every where we want.
24th Feb 2019, 5:45 AM
Hadi Najafi
Hadi Najafi - avatar
+ 1
For example we have class Person, we make a bDate attribute, an instance of java.util.Date class.
24th Feb 2019, 5:47 AM
Hadi Najafi
Hadi Najafi - avatar