| Author |
sms handling javaME
|
Muhammad Naveed Ul Haq
Greenhorn
Joined: Aug 06, 2011
Posts: 3
|
|
|
Hello everybody!I'm new to oop and java however have a little vb expeiranc so I'm a littel awar of event driven programing, first of all I want to clear concepts of class, subrutien, and object and creating object becaus oop and event driven programing are little contradictory for me.After this I want to make a program using java ME in netbeans7 IDE to handle sms i.e. Open reply or forword it.
|
 |
Walter Gabrielsen Iii
Ranch Hand
Joined: Apr 09, 2011
Posts: 158
|
|
The Class is what you type out in your code editor. In a class you can choose what data structures (primative variable types, object references, methods) the objects created from that class will have. When you run your program a class can be put into memory as one or more Objects.
An Object is, well, its own, self-contained object in memory with the internal structure of the class it is based on.
An Object is created with the new keyword and a matching constructor. Example, I create a new Object reference using Object's no argument constructor (see the constructor of ther Object class of Java ME API):
Here, the new Object has the named reference "o" which I can use to call methods inside that object, example:
A Subroutine, as you call it, is called a method in Java. A Method is where you put lines of code, when you write a class, that are suppose to run when you call that method.
|
 |
 |
|
|
subject: sms handling javaME
|
|
|