An object is an encapsulation of data. An object has identity (a unique reference) social security number (cpr), employee number, passport number state, also called characteristics (variables) hungry, sad, drunk, running, alive behavior (methods) eat, drink, wave, smile, kiss An object is an instance of an class A class is often called an Abstract Data Type (ADT).
I liked the explanation, especially because of the code sample. Good job.
ReplyDeletereally i got the point about the abstraction.well done
ReplyDeletereally i got the point about the abstraction.well done
ReplyDelete