Introduction To Java
Introduction To Java
KAMYA VERMA
design with a blank slate. One outcome of this was a
clean, usable, pragmatic approach to objects. Borrowing
liberally from many seminal object-software
environments of the last few decades, Java manages to
strike
a balance between the purist’s ―everything is of my
way‖ model. The object model in Java i such as integers,
are kept as high-performance non objects.
KAMYA VERMA
we can build many houses from one blueprint, we can instantiate
(create) many objects from one class.
Classes can have relationships with other classes. For example, in an
object-oriented design of a bank, the
―bank teller‖ class needs to relate ―safe‖ class, and so on. These
relationships
KAMYA VERMA
As you know, all computer programs consist of two elements: code and
data. Furthermore,a program can be conceptually organized around its
code or around its data. That is, some programs are
writtenhappening‖aroundand―whatothersis are wri affected.‖ These are
the two paradigms that g
The first way is called the process-oriented model. This approach
characterizes a program as a series of linear steps (that is, code). The
process-oriented model can be thought of as code acting on data.
Procedural languages such as C employ this model to considerable
success. Problems with this approach appear as programs grow larger
and more complex. To manage increasing complexity, the second
approach, called object-oriented programming, was conceived.
There are many high level languages like COBOL, FORTRAN, PASCAL,
C used for conventional programming commonly known as POP.
KAMYA VERMA