hello, i'm a beginning ICS student currently in the process of doing some homework...
i was wondering if this was a correct prolog statment for this english sentence...
If Fido is yellow Lab, then Fido is a dog.
dog(fido) :- yellow_lab(fido).
looks good to me
<!-- comment comment comment --></
thanks alot!!! i wanted to make sure...![]()
Looks good and I'm guessing you are learning about classes?
Parent Class: DOG
Inherit Class (from DOG): Yellow Lab
Looks good.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks