Java Learning Made Easy
CLASSES & OBJECTS
o Object :
o An object is an identifiable entity with some characteristic andbehaviour.
o Class :
o A Class is a group of objects that share common properties and
o The Objects are variables of type Class eg.
o If animal has been defined as a Class, then the statement;
o animal dog;
o will create an Object featuring dog belonging to the class animal.
PDF created with pdfFactory Pro trial version www.pdffactory.com