Search:

Type: Posts; User: spark

Search: Search took 0.07 seconds.

  1. Replies
    14
    Views
    1,636

    Re: protected Access Specifier

    thanks all of you .
  2. Replies
    14
    Views
    1,636

    Re: protected Access Specifier

    thanks man.
  3. Replies
    14
    Views
    1,636

    Re: protected Access Specifier

    thanks .. for explanation .
    it means protected members are visible to the main . as long as it is the same package..
  4. Replies
    14
    Views
    1,636

    protected Access Specifier

    hi people ,
    thanks for support . but i have Simple Question in Access Specifier
    my question is here:
    Can i change the value of a member declared as protected in the main ??

    class A {...
  5. Thread: Array of objects

    by spark
    Replies
    2
    Views
    1,583

    Array of objects

    i am writing a code for workers in inheritance .
    there is nothing wrong with code but i have a question..
    if i have 8 workers i will create an array of 8 objects:
    worker[] object = new worker[8];...
  6. Replies
    3
    Views
    1,441

    Re: copying subclass object

    thanks for Explanation. and details ..
    :)
  7. Replies
    3
    Views
    1,441

    Re: copying subclass object

    Solved ,,
    i put a constructor In Aclass with arguement of Bclass, to when it is called it will copy subclass object ..

    Aclass ( Bclass obj){
    x = obj.x;
    }

    Solved .

    but is it possible to...
  8. Replies
    3
    Views
    1,441

    copying subclass object

    hi all ..
    I am trying to copy Subclass object to Super class ..

    which is in my code . from Bclass object to Aclass object.. but it is not copied .
    the program compiled successfully .

    but...
  9. Replies
    5
    Views
    1,650

    Re: Array in Constructor

    yeah , right

    Thanks man
  10. Replies
    5
    Views
    1,650

    Re: Array in Constructor

    when i try to compile the program , it shows the following error:
  11. Replies
    5
    Views
    1,650

    Array in Constructor

    Hello ,
    i am beginner programmer.
    i am trying to initialize an Array in the constructor , but i am stuck here,
    Whats wrong ?

    class arra
    {
    int[] q;

    arra()
Results 1 to 11 of 11