scroll to top
Stuck on your essay?
Get ideas from this essay and see how your work stacks up
Word Count: 618
My Quick Summary of Classes 1A class is an abstract concept aOther Descriptions iA class is a blueprint iiA class represents a category of items bExamples iA Radio is a category of items iiA Student is a category of items iiiA Ball is a category of items 2An object is the embodiment of a class aOther Descriptions iAn object is an instance of a class iiAn object is an actual item It exists bExamples iThe radio in your room is an object of the Radio class It exists iiYou are an object of the Student class iiiThe ball the basketball team uses in an object of the Ball class 3A class consists of two basic things aInstance Data the NOUNS iOther Descriptions 1Instance data represents the state of an object 2Instance data represents the attributes of an object 3Instance data represents the characteristics of an object iiExamples 1A volume dial and tuner are attributes of a Radio 2A name and GPA are attributes of a Student 3Size and color are the attributes of a Ball iiiVisibility of Instance Data 1Instance Data represents private information 2Clients should not be able to modify private information 3Variables should be private 4Constants can be either public or private Why bMethods the VERBS iOther Descriptions 1Methods represent the behavior or an object 2Methods represent the services an object can provide 3Methods represent the things an object can do iiExamples 1A Radio can change volume A Radio can change the station 2A Student can tell you hisher GPA 3A Ball can bounce A Ball can roll iiiThree Basic Categories of Methods 1Constructors SAME name as class and NO return type aInitialize instance data bCreate an object 2Accessors aAccess information about an object bDo NOT change the instance data 3Mutators aModify the object bDO change the instance data ivVisibility of Methods 1Methods provide an interface between an object and client 2Service methods are public 3Support methods are private 4public
@Kibin is a lifesaver for my essay right now!!
- Sandra Slivka, student @ UC Berkeley
Wow, this is the best essay help I've ever received!
- Camvu Pham, student @ U of M
If I'd known about @Kibin in college, I would have gotten much more sleep
- Jen Soust, alumni @ UCLA