thanks all of you .
Type: Posts; User: spark
thanks all of you .
thanks man.
thanks .. for explanation .
it means protected members are visible to the main . as long as it is the same package..
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 {...
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];...
thanks for Explanation. and details ..
:)
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...
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...
yeah , right
Thanks man
when i try to compile the program , it shows the following error:
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()