Final Exam Review - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Final Exam Review

Description:

sorting a music database: myTunes.java, MusicRecord.java array manipulation. Terms ... Composition (has a) Inheritance (is a) ... – PowerPoint PPT presentation

Number of Views:25
Avg rating:3.0/5.0
Slides: 15
Provided by: mik97
Category:
Tags: exam | final | review

less

Transcript and Presenter's Notes

Title: Final Exam Review


1
Final Exam Review
2
Know
  • Class declaration
  • Class declaration with inheritance
  • is a
  • Class declaration with implementation
  • interface
  • realization relationship
  • Interface declaration (see iGeometry)

3
Know
  • Instantiation
  • Instantiation with parameters
  • Instantiation with a reference object
  • has a
  • Composition

4
Be able to write
  • Given a class declaration, write a Constructor
  • Given private variables,
  • write a mutator (set)
  • write an accessor (get)

5
Given a class file, identify
  • Class declaration
  • Instantiation
  • Inheritance
  • Composition
  • Constructor
  • Comments
  • Reference variables
  • Local Variables

6
Given a few classes with methods
  • Follow flow-of-control on method calls
  • Especially for parent / child
  • super / this

7
Debug a program
  • Missing semicolons
  • Misspelled variables
  • Method declaration matched with return
  • Variable mismatches
  • Wrong value
  • Operations with mixed types
  • Method calls matched with parameters

8
Know how to
  • Define a Color
  • Get a Random number
  • Parse an int to a String
  • Prevent an operator entry error
  • trycatch (Exception e)
  • Define a polygon object

9
Helper classes
  • Exception e
  • Graphics g
  • ActionEvent e
  • File read sequence File, FileReader,
    BufferedReader classes
  • .ready( ) .readLine( ) .close( ) methods

10
Misc
  • Be able to write a loop to any spec
  • Initialize an array

11
Example programs you should understand
  • private variable use BankAccount.java,
     BankAccountUser.java  - get/set methods
  • StarClass, SimpleStarUser Lab 10
  • the IGeometry interface IGeometry.java ,
    GeometryUser.java , Sphere.java , Pyramid.java ,
    Cube. java interface polymorphism
  • sorting a music database myTunes.java,
     MusicRecord.java array manipulation

12
Terms
  • Override (extends)
  • Overload (polymorphism)
  • Composition (has a)
  • Inheritance (is a)
  • UML graphical representation of classes (with
    methods and variables) and relationships

13
Operator entry
  • JOptionPane
  • .showInputDialog(
  • .showConfirmDialog(
  • .showMessageDialog(
  • JColorChooser
  • boxColor JColorChooser.showDialog( null,
    Greeting, defaultColor )
  • JFileChooser
  • File f // (not instantiation)
  • JFileChooser fileGetter new JFileChooser()
  • fileGetter.showOpenDialog( null )
  • f fileGetter.getSelectedFile() // this
    performs the instantiation

14
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com