{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

PreLab03 - Name Edward Leon Section 1 Knapp Pre-Lab 03 CSC...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Name: Edward Leon Section: 1, Knapp Pre-Lab 03 – CSC 127A – Spring 2008 1. In your own words explain the relationship between an object and a class (i.e. no book definitions) The object relies on the class. The class is made up of functions and the object of that class is based off the formation of the class. 2. The book describes classes as similar to M&M candies; create your own metaphor for encapsulation. An example that is close to the M&M candy example would be any kind of food or object that has a soft center protected at all times by a hard surface. This includes almost any chocolate candy like an M&M. 3. Go to the Java API (application programming interface; http://java.sun.com/javase/6/docs/api/ ) and select a class. Write down the overall purpose of the class and three methods the class offers. Color: The purpose of this class is to affect colors in Colorspace. It affects color, brightness, and transparency, as well as many others. Three methods that are used under the Color class are: 1. int getTransparency 2.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern