Source: www.csitnepal.com (By:Tej Bahadur Shahi) Page 9
Besides these, there are some languages that support abstract data type but not all
features of object-oriented programming. They are called object-based languages.
Examples of such language are Modula-2, Pliant, Ada.
1. Smalltalk
Smalltalk is an object-oriented, dynamically typed, reflective programming language The
development of Smalltalk language started in 1969 and it was publicly available in 1980.
This language was developed by Alen Kay, Dan Ingalls, Adele, Goldberg at Xerox Palo
Alto Research center (PARC). This language is 100% Object Oriented. The development
of this language is influenced by language like Lisp, Simula, Logo, and Sketchpad. ANSI
Smalltalk was ratified in 1998 and represents the standard version of Smalltalk.
In smalltalk, objects are called instance variables. All objects are dynamic. It offers
fully automatic garbage collection and deallocation is performed by a built in garbage
collector. All variables are untyped and can hold objects of any class. New objects are
created using the same message passing mechanism used for operations on objects. All
attributes are private to the class where as all operations are public. The syntax is very
unusual and this leads to learning difficulties for programmers who are used to
conventional language syntax.
Inheritance can be achieved by supplying the name of the super class. All attributes
of super class are available to all its descendants. All methods can be overridden. Also
multiple inheritance is not supported by standard implementation of Smalltalk. Rapid
development of program is possible under its highly interactive environment.
Example Program of Smalltalk:
Transcript show: 'Hello, world!'
In the above code, the message 'show:' is sent to the object 'Transcript' with the String
literal 'Hello, world!' as its argument. Invocation of the 'show:' method causes the
characters of its argument (the String literal 'Hello, world!') to be displayed in the
transcript ('terminal') window.
2. Java
Java was designed by SUN (Stanford University Net) Microsystems, released in 1996
and is a pure object oriented language. The SUN says "Java is a new, simple, object
oriented, distributed, portable, architecture natural, robust, secure, multi-threaded,
interpreted, and high performance programming language".
It took 18 months to develop the first working version. Java was initially called "Oak". It
was renamed Java in 1995. The objective of Java was "Write Once, Run Anywhere"
(WORA). It was fairly secure and its security was configurable, allowing network and
file access to be restricted. Major web browsers soon incorporated the ability to run
secure Java applets within web pages. Java became popular quickly. With the advent of
Java 2, new versions had multiple configurations built for different types of platforms.
For example, J2EE was for enterprise applications and the greatly stripped down version
J2ME was for mobile applications. J2SE was the designation for the Standard Edition. In csitnepal csitnepal