Docsity

CMSC132 Midterm 2 Notes, Study notes of Object Oriented Programming

Toggle sidebar
bg1
Midterm Review
• Inner classes
• Static inner class =
• No UMLs but can use it
• Should be able to define clone() method for a class
• Performs shallow copy
• Deep copy – copy everything
• Need to know what a stack and a queue is but not the methods
• Singly-linked list and doubly-linked list both fair game
• Need to know what a destructor is
• Don’t know if it will take place
• Initialization block – when is it loaded?
• If efficient hash code – cannot be just return 0
• No java effects thing but should be able to provide inner class or lambda expression for a button
• Can only use lambda expressions when the interface has only 1 method
• For lambda expression can only use single abstract math expression
• Nothing about GUIs except model-view-controller
• Usually controller and view are tied together
• Know the table for Big-O notation and what is the critical section + function
• Big-O results are only valid when the set is increasing and not when the set is small
• No big-O for recursive
• Design patterns – how to solve problems with it and which one to use
• Given a class, create stuff that are generic or return generic stuff
• Should be able to define a generic class with two or more types

Partial preview of the text

Download CMSC132 Midterm 2 Notes and more Study notes Object Oriented Programming in PDF only on Docsity!

Midterm Review

  • Inner classes
    • Static inner class =
  • No UMLs but can use it
  • Should be able to define clone() method for a class
    • Performs shallow copy
  • Deep copy – copy everything
  • Need to know what a stack and a queue is but not the methods
  • Singly-linked list and doubly-linked list both fair game
  • Need to know what a destructor is
    • Don’t know if it will take place
  • Initialization block – when is it loaded?
  • If efficient hash code – cannot be just return 0
  • No java effects thing but should be able to provide inner class or lambda expression for a button
    • Can only use lambda expressions when the interface has only 1 method
  • For lambda expression can only use single abstract math expression
  • Nothing about GUIs except model-view-controller
    • Usually controller and view are tied together
  • Know the table for Big-O notation and what is the critical section + function
  • Big-O results are only valid when the set is increasing and not when the set is small
    • No big-O for recursive
  • Design patterns – how to solve problems with it and which one to use
  • Given a class, create stuff that are generic or return generic stuff
  • Should be able to define a generic class with two or more types