Adv Java Study Guide 1 - STUDY GUIDE EXAM 1(CH 6 AND CH 7...

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

View Full Document Right Arrow Icon
STUDY GUIDE EXAM 1 (CH 6 AND CH 7) Three tier design for OO classes o Presentation Layer - GUI classes Define objects that make up the UI to the application o Business Layer – Problem domain classes Specific to a particular business application o Data Access Layer – Data Access Classes Store/retrieve object information Class and Objects o Class Defines what all objects of the class know and can do o Objects Instances of the class o Cookie Cutter Metaphor Class is the cookie and the objects are the cutter Variables o Primitive variables Store the assigned values o Reference variables Store a reference to an object Methods o Method structure/definition Method header ( parameter list ) { Method variables Method statements } //end of method Method header- the line of code that specifies modifiers, return type, name, and parameters for the method Method body- the block of code that is executed when the method is run Method definition – the combination of the method header and body Method signature – combination of the method name and parameter list o Method call The line of code used to run the method General forms Variablename.methodName ( parameters ) or ClassName.methodName( parameters) Problem Domain Classes o Declaring instance variables Ex. Private String name;
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