Search:

Type: Posts; User: fahman_khan75@yahoo.com

Search: Search took 0.28 seconds.

  1. Re: Creating objects from methods

    Ok, so I'm reading my java book and this is what it reads . The book also mentions that Either I'm interpreting this wrong, which I believe I am, or I doubt your actually wrong :D since your more...
  2. Re: Creating objects from methods

    I do understand what the error is. Basically the variable is not initialized to any value. From my understanding and from what I have read, when passing objects to methods, the reference variable is...
  3. Re: Creating objects from methods

    Thank your for your response! I'm aware that's not the conventional way of writing a code; however, I was using my ipad during that time. Apologize for my mistake. Also, I did peak on to the links...
  4. Creating objects from methods

    public class demo
    {
    Public class static void main(String[]args)
    {
    //Creating a variable that will be a reference to the object
    Peoples person_one;

    //create an object using void method
    ...
Results 1 to 4 of 4