Course Notes Set 1: Java and OO Review - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Course Notes Set 1: Java and OO Review

Description:

Class - a description of an entire category or group of objects. Every object is an instance of some particular class. COMP 2210 Course Notes Slide 1-4 ... – PowerPoint PPT presentation

Number of Views:53
Avg rating:3.0/5.0
Slides: 8
Provided by: deanhe
Category:
Tags: course | java | notes | review | set

less

Transcript and Presenter's Notes

Title: Course Notes Set 1: Java and OO Review


1
Course Notes Set 1Java and OO Review
  • COMP 2210
  • Dr. Hendrix
  • Computer Science and Software Engineering
  • Auburn University

2
Object-Oriented Programming
  • Programming world-view
  • Things in the problem space modeled in software
    as objects.
  • An object is an abstraction of a real-world
    thing, implemented as an encapsulation of private
    data and methods (operations on that data).

3
Messages and Methods
  • Objects communicate by sending messages to one
    another.
  • Receiving a message causes a method to execute.
  • An object-oriented program defines a collection
    of objects that communicate and cooperate to
    solve a problem.

4
Classes and Instances
  • Class - a description of an entire category or
    group of objects.
  • Every object is an instance of some particular
    class.

5
Inheritance
  • New classes are derived from existing ones
    through inheritance.
  • Subclasses inherit all the data and methods of
    their superclass.
  • Subclasses can add new data and methods and
    override existing methods.

6
Controlling Inheritance
  • Visibility modifiers affect how data and methods
    are inherited
  • public, protected, private, abstract, final

7
Polymorphism
  • Refers to the ability of an object reference to
    take many forms.
  • This derives from Javas typing rules for
    reference variables and its implementation of
    dynamic dispatching.
Write a Comment
User Comments (0)
About PowerShow.com