SEN1002 · Nesne Yönelimli Programlama (Java)

Object Oriented Programming (Java)

Inheritance, polymorphism, exceptions, files, recursion and generics.

Textbook: Paul Deitel, Harvey Deitel, Java: How to Program, Pearson, ISBN-10: 0132575663

  1. Week 1
    Classes and Objects
    • Classes and objects: reviewFields, constructors, this, encapsulation, static vs instance, toString and equals. The rest of the semester builds on this foundation.
  2. Week 2
    Inheritance
  3. Week 3
    Polymorphism
  4. Week 4
    Polymorphism II: Abstract Classes and Interfaces
    • Abstract classes and interfacesabstract methods, interfaces, default methods, multiple interfaces and sorting with Comparable. The main source of compile-error questions.
  5. Week 5
    GUI Components
  6. Week 6
    GUI and Event-driven Programming
  7. Week 7
    Case Study: Object Oriented Design with the UML
    • Object-oriented design with UMLReading and writing class diagrams: visibility markers, relationship arrows, multiplicity, the aggregation vs composition difference, and going from a requirements text to classes.
  8. Week 8
    Strings, Characters and Regular Expressions
  9. Week 9
    Exception Handling
  10. Week 10
    Midterm Review
    • Midterm review: weeks 1-9 mixedA one-page summary of every topic on the midterm, from classes to exceptions, and 12 exam-style questions that mix the topics together.
  11. Week 11
    Files and Streams, Object Serialization
    • Files, streams and object serializationFile operations with Files and Path, reading with Scanner, writing with PrintWriter and Formatter, try-with-resources, and saving objects with ObjectOutputStream.
  12. Week 12
    Recursion
    • RecursionMethods that call themselves: base case, recursive step, tracing the call stack, and factorial, Fibonacci, powers, palindromes, binary search. The second big source of output-tracing questions.
  13. Week 13
    Searching and Sorting (Selection, Insertion, Merge Sort)
  14. Week 14
    Generic Classes and Methods