Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

what is instance of objects in java

MatthewXia
MatthewXia

pls help. im struggling. :(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(

2 years ago
You are viewing a single comment. View All
2
CodeLongAndPros
CodeLongAndPros

An instance is something you can use. If you are in your house, your Samsung is an instance of a Tele-Vision. Your iPhone 6S is an instance of a smart-phone. ‘instanceof’ tells you what the instance came from.

For example (this will not work)

INSTANCEOF Samsung yields TV INSTANCEOF iPhone yields phone
2 years ago
1
MatthewXia
MatthewXia

@CodeLongAndPros
ty so much :)

2 years ago