User Tools

Site Tools


java_fundamentals

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
java_fundamentals [2017/09/14 11:03]
130.246.76.246 [Java is an Object Oriented language]
java_fundamentals [2017/09/14 11:03] (current)
130.246.76.246 [Java is an Object Oriented language]
Line 5: Line 5:
 Why do we make programs? Because we want them to provide some answers! For instance, let's say we want to perform some linear algebra, then we define a series of functions to do things on matrices, like calculate the determinant. This works brilliantly,​ however we have to deal with matrices all the time, and the big leap of object oriented programming is that we put this procedures inside the matrix object! So, once we create the object we immediately are able to calculate the determinant! Why do we make programs? Because we want them to provide some answers! For instance, let's say we want to perform some linear algebra, then we define a series of functions to do things on matrices, like calculate the determinant. This works brilliantly,​ however we have to deal with matrices all the time, and the big leap of object oriented programming is that we put this procedures inside the matrix object! So, once we create the object we immediately are able to calculate the determinant!
  
-The key element is the object, which is characterized by its state and by methods to change it. The analogy with real life objects clarifies immediately. Take an object like a ''​Car'':​ its state could be ''​on/​off''​ and  methods to change it (the key), would be ''​startEngine()''​ and ''​stopEngige()''​.+The key element is the object, which is characterized by its state and by methods to change it. The analogy with real life objects clarifies immediately. Take an object like a ''​Car'':​ its state could be ''​on/​off''​ and  methods to change it (the key), would be ''​startEngine()''​ and ''​stopEngine()''​.
  
 With this ingredients our program can be made by a more or less complex network of objects interacting with each other. With this ingredients our program can be made by a more or less complex network of objects interacting with each other.
java_fundamentals.txt ยท Last modified: 2017/09/14 11:03 by 130.246.76.246