Advances Java 2
Advances Java 2
Object Oriented
Programming
Topic 2
• Comprised of 1s and 0s
• The “native” language of a computer
• Difficult to program – one misplaced 1 or 0 will cause the program to
fail.
• Example of code: 1110100010101 111010101110 10111010110100
10100011110111
Assembly Languages
• Pure OO Languages
Eiffel, Actor, Emerald, JADE, Obix, Ruby, Python, Scala, Smalltalk, Self.
• Hybrid OO Languages
Delphi/Object Pascal, C++, Java, C#, VB.NET, Pascal, Visual Basic,
MATLAB, Fortran, Perl, COBOL 2002, PHP, ABAP, Ada 95.
Object Oriented
Programming
• Object
– usually a person, place or thing (a noun)
• Method
– an action performed by an object (a verb)
• Property or attribute
– Characteristics of certain object.
• Class
– a category of similar objects (such as automobiles), does not hold
any values of the object’s attributes/properties
Classes and Objects