object oriented programming
object oriented programming
object
oriented
java
Programming languages
Procedural Object
PL oriented PL
java Programming languages
java Review of object oriented
concepts
java Review of object oriented
concepts
• Private/public/protected members
• Accessor/Mutator Mehods
• Constructors
• Abstraction
• Exception
• Encapsulation
• Polymorphism
• Inheritence
• Composition
java Review of object oriented
concepts
Exception in Java
is an indication of a problem that occurs during a program’s execution. The name “exception” implies
that the problem occurs infrequently
java Review of object oriented
Encapsulation describes the idea of bundling data and methods that work on that data within
concepts
one unit, e.g., a class in Java. This concept is also often used to hide the internal
representation, or state, of an object from the outside. This is called information hiding.
java Review of object oriented
concepts (inheritance)
java Review of object oriented
concepts (composition)
java Review of object oriented
Variables
concepts
java Class Fields (Data)
Methods
java EXAMPLE: Implement the time of the
day