Dog : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

Dog

In my examples I use classes Dog and Dalmatian. I trust that everyone knows that Dalmatian is a breed of dog, hence all Dalmatian objects are also Dog objects. A Dalmatian object is a Dog object plus extra fields.

If you convert a Dog to a Dalmatian using a copy constructor, stop using the Dog object because any changes you make to the Dalmatian object Dog fields will not be reflected back in the source Dog object.

If you convert a Dog to a Dalmatian object by having a Dog reference in the Dalmatian object, any changes you make to the Dalmatian object Dog fields will be reflected in the original Dog object.


This page is posted
on the web at:

http://mindprod.com/jgloss/dog.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\dog.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[18.117.142.3]
You are visitor number