Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 4 of 6 FirstFirst ... 23456 LastLast
Results 76 to 100 of 150

Thread: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

  1. #76
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    Quote Originally Posted by Norm View Post
    The posted method returns true or false on the first elements it looks at. Shouldn't it look at all the elements before making the decision for one of the values to be returned? The other value could be returned at the first failure.



    I don't know the definition of a piece
    or what a previous piece is
    or what saving a piece means.


    If legalDown() is a method in the Piece class (or the class it extends)
    and shape is a variable in the Piece class (or the class it extends)
    then that is how you could call the legalDown() method.


    Can you explain what the method: legalDown() is supposed to do?
    What are its args?
    When does it return true or false?
    public class collisiontest
    {
     
    	public static boolean legalDown(int currentX, int currentY, int[][] board, int[][] shape)
    	{
    	   int x = currentX+1;
    	   int y = currentY;
     
    	   for (int row = 0; row < 4; row++)
    	   {
    	   	for(int col = 0; col < 4; col++)
    	   	{
     
     
    	   		if (shape[row][col] == 1 && board[x+row][y+col] == 0)
    	   		{
     
     
    	   		}
    	   		else
    	   		{
    	   			if (shape[row][col] == 0 && board[x+row][y+col] == 1)
    	   			{
     
    	   			}
    	   			else
    	   			{
     
    	   			    if(shape[row][col] ==0 && board[x+row][y+row] == 0)
    	   			    {
     
    	   			    }
     
    	   			    else
    	   			    {
     
    	   				return false;
    	   			    }
    	   			}
    	   		}
    	   	}
    	   }
     
     
        return true;
    	}
     
     
    public static void main(String[] args)
    {
      		int [][] m1 =
    		{{1,1,0,0},
    		 {1,1,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		};
     
     
    		int[][] board =
    		{{0,0,0,0},
    		 {0,0,1,1},
    		 {0,0,1,1},
    		 {0,0,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		};
     
    			int[][] board3 =
    		{{0,0,0,0},
    		 {0,0,1,1},
    		 {0,0,1,1},
    		 {1,0,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		};
     
    		int[][] board2 =
    		{{0,0,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		 {1,1,0,0},
    		};
     
    int currentX = 1;
    int currentY = 0;
     
    		System.out.println(legalDown(currentX, currentY, board, m1));
     
    		System.out.println(legalDown(currentX, currentY, board3, m1));
     
    		System.out.println(legalDown(currentX, currentY, board2, m1));
     
     
     
     
     
     
     
     
     
     
    }
    }

    it's working now.

    previous pieces = the pieces that fell onto another piece or the floor

    legaldown is supposed to return true if we can move down and return false if we can't

    it will be used inside moveDown

    Now, I need to know where Board (int array representing all the pieces that were laid down) is located.

  2. #77
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    where Board ... is located.
    There is a class named Board.


    The legalDown() method could be reduced to using a single if statement that made this test:
    if shape is non-0 then test that board is 0
    If not, return false;
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    wholegrain (February 18th, 2013)

  4. #78
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    To fill in the board square covered by a piece, it would be helpful to have a method similar to the one above that copies the non-zero entries from the given array into the corresponding board squares.

    I need to implement this now, but I have the following questions:

    where do I put the contents array? I don't see a board array in the program

    do i need to put the contents array inside the board once it was laid down or once it appears? and how do i know a piece was laid down? what if statement should i use for that?

  5. #79
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    where do I put the contents array? I don't see a board array in the program
    Did you look at the Board class? It has a contents array in the class it extends.

    do i need to put the contents array inside the board once it was laid down or once it appears? and how do i know a piece was laid down? what if statement should i use for that?
    I have no ideas about how the variables in the classes should be changed or used as the game is played. I don't know the game.
    If you don't understand my answer, don't ignore it, ask a question.

  6. The Following User Says Thank You to Norm For This Useful Post:

    wholegrain (February 17th, 2013)

  7. #80
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    Quote Originally Posted by Norm View Post
    Did you look at the Board class? It has a contents array in the class it extends.


    I have no ideas about how the variables in the classes should be changed or used as the game is played. I don't know the game.
    how do i access the board though? I don't see any 2d array i can reference to...

    Tetris Battle - 145 lines - T-spin - Rank 50 - YouTube

    this video should help you understand what's tetris.

    --- Update ---

    Quote Originally Posted by Norm View Post
    Did you look at the Board class? It has a contents array in the class it extends.


    I have no ideas about how the variables in the classes should be changed or used as the game is played. I don't know the game.
    Yeah there is a content array: int[][] contents

    but I use int[][] contents to rotate the pieces.

  8. #81
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    how do i access the board though? I don't see any 2d array i can reference to...
    The Board class extends the Grid class. Look there.

    This is a basic OOP concept. Every object has its own copy of all the variables defined in the base class and the extended class.


    Earlier I asked you to remove all the static stuff to make sure that all objects had a copy of their own variables.
    If you don't understand my answer, don't ignore it, ask a question.

  9. The Following User Says Thank You to Norm For This Useful Post:

    wholegrain (February 17th, 2013)

  10. #82
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    So if I understand, when I callled currentPiece.moveDown(), it modified the int [][] contents attribute that belonged to the Piece class? So, if I want to modify the int [][] contents attribute of Board, I have assign the int [][] contents attribute another array inside board.method()? I can't modify contents inside a method if I don't specify the instantiated class object like this: board.method() or currentPiece.method(), right?

    --- Update ---

    Ok, I think I might be able to do this...

    To fill in the board square covered by a piece, it would be helpful to have a method similar to the one above that copies the non-zero entries from the given array into the corresponding board squares.

    So, basically, I have to write a method I call below updatePosition() in moveLeft;

    synchronized void moveLeft() {

    currentX--;
    updateLocation();
    method();

    }

    that method is in Board

    Now, since I call method() from the class Piece

    I can't just write

    contents = int[][]a, right?

    Do I have to write:

    Board.contents = int[][] a?

    I am not sure about this...

    I think I will be able to modify it, but I have to know how to access contents.

    Earlier I could just write

    contents = a; // a = int[][]array

    but that was because the method call was: currentPiece.moveDown()

  11. #83
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    board.method() or currentPiece.method(),
    Those would be how a method for each of those classes would be called.

    if I want to modify the int [][] contents attribute of Board,
    A method in the Board class can access variables defined in the class.


    These problems are very basic OOP programming. If you are having problems understanding what is going on I suggest that you work with some very simple classes that extend others and test using methods that update variables in the classes.
    If you don't understand my answer, don't ignore it, ask a question.

  12. The Following User Says Thank You to Norm For This Useful Post:

    wholegrain (February 18th, 2013)

  13. #84
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    Quote Originally Posted by Norm View Post
    Those would be how a method for each of those classes would be called.


    A method in the Board class can access variables defined in the class.


    These problems are very basic OOP programming. If you are having problems understanding what is going on I suggest that you work with some very simple classes that extend others and test using methods that update variables in the classes.
    Ok, thanks. So, this is what I must do, right?

    synchronized void moveLeft() {

    currentX--;
    updateLocation();
    board.method();

    }

  14. #85
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    this is what I must do
    Sorry, I don't know what you are trying to do in that method
    and what class that method is in
    and I don't know what those methods do.
    If you don't understand my answer, don't ignore it, ask a question.

  15. The Following User Says Thank You to Norm For This Useful Post:

    wholegrain (February 18th, 2013)

  16. #86
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    Quote Originally Posted by Norm View Post
    Sorry, I don't know what you are trying to do in that method
    and what class that method is in
    and I don't know what those methods do.
    sorry.

    method = addArray

    method is inside Board

     
    public class addarray
    {
     
    	public static void addArray(int currentX, int currentY, int[][] board, int[][] shape)
    	{
    	   int x = currentX;
    	   int y = currentY;
     
    	   for (int row = 0; row < 4; row++)
    	   {
    	   	for(int col = 0; col < 4; col++)
    	   	{
     
     
    	   		if (shape[row][col] == 1 )
    	   		{
     
    				board[x+row][y+col] = 1;
    	   		}
     
     
    	   	}
    	   }
    	}
     
     
     
    	public static void printArray(int [][] array)
    	{
    		for(int row = 0; row < array.length; row++)
    		{
    			for(int col = 0; col < array[row].length; col++)
    			{
    				if (array[row][col] > 0)
    				{
     
    				System.out.printf("1");
    				}
    				else
    				System.out.printf("0");
    			}
    			System.out.printf("\n");
    		}
     
    	}
     
     
     
     
    public static void main(String[] args)
    {
      		int [][] m1 =
    		{{1,1,0,0},
    		 {1,1,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		};
     
     
    		int[][] board =
    		{{0,0,0,0},
    		 {0,0,1,1},
    		 {0,0,1,1},
    		 {0,0,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		};
     
    			int[][] board3 =
    		{{0,0,0,0},
    		 {0,0,1,1},
    		 {0,0,1,1},
    		 {1,0,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		};
     
    		int[][] board2 =
    		{{0,0,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		 {0,0,0,0},
    		 {1,1,0,0},
    		};
     
    int currentX = 1;
    int currentY = 0;
     
    addArray(currentX, currentY, board, m1);
     
    printArray(board);
     
     
     
     
     
     
     
     
     
     
     
    }
    }


    I still don't understand how come we write contents instead of shapes (Piece class)or contents instead of int[][] (Board class). It seems counterintuitive, but it kinda make sense since the only way to modify their attributes (for Board and Piece instance objects) is by writing currentPiece.method() or board.method().

  17. #87
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    way to modify their attributes (for Board and Piece instance objects
    Yes, the way to modify the variables in a class object is by calling a method in that class.
    If you don't understand my answer, don't ignore it, ask a question.

  18. The Following User Says Thank You to Norm For This Useful Post:

    wholegrain (February 18th, 2013)

  19. #88
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    When should I call removeRows and fallRows

    // traverse the array, remove rows, save index
    // traverse arrays and put 1 below x number of rows using index and remove the 1 above it
    //
    public class removerows
    {
     
    	public static void printArray(int [][] array)
    	{
    		for(int row = 0; row < array.length; row++)
    		{
    			for(int col = 0; col < array[row].length; col++)
    			{
    				if (array[row][col] > 0)
    				{
     
    				System.out.printf("1");
    				}
    				else
    				System.out.printf("0");
    			}
    			System.out.printf("\n");
    		}
     
    	}
     
     
     
     
    	public static void removeRows(int [][] array)
    	{
    		for(int row = 0; row < array.length; row++)
    		{
    			int number = 0;
     
    			for(int col = 0; col < array[row].length; col++)
    			{
     
     
    				if(array[row][col] == 1)
    				{
    					number++;
     
    				}
     
     
    				if(number == 4)
    				{
     
    				  for(int col2 = 0; col2 < array[row].length; col2++)
    				  {
    				  	array[row][col2] = 0;
     
    				  }
     
    				}
     
    			}
     
    		}
     
    	}
     
    	public static void rowFall(int [][] array)
    	{
    		int rowDistance = 0;
     
    		for(int row = array.length-1; row >= 0; row--)
    		{
    			int number = 0;
     
     
     
     
    			for(int col = 0; col < array[row].length; col++)
    			{
    				if(array[row][col] == 0)
    				{
    					number++;
     
    				}
     
    				if (number == 4)
    				{
    					rowDistance++;
     
    				}
     
    				if(array[row][col] == 1 && rowDistance > 0)
    				{
    					for(int col2 = 0; col2 < array[row].length; col2++)
    					{
    						array[row+rowDistance][col2] = array[row][col2];
     
    						array[row][col2] = 0;
     
     
     
    					}
     
    					//recursion call
     
    					rowFall(array);
     
     
     
    				}
     
     
    			}
    		}
    	}
     
     
    public static void main(String[] args)
    {
     
     
    		int[][] board =
    		{{0,0,0,0},
    		 {0,0,1,1},
    		 {1,1,1,1},
    		 {0,0,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		 {1,1,1,1},
    		};
     
    	System.out.println("implementing removeRow");
    	removeRows(board);
    	printArray(board);
    	rowFall(board);
    	System.out.println("implementing rowFall");
    	printArray(board);
     
     
     
     
    }
     
    }

    	void dropPiece() {
    		currentPiece = PieceFactory.createPiece();
    		mainPanel.add(currentPiece);
    		currentPiece.repaint();
    		currentPiece.fall();
    		//mainPanel.remove(currentPiece);
    		board.repaint();
    		addToScore(1);
    	}

    Here right?

    Should it be like this?

    	void dropPiece() {
    		currentPiece = PieceFactory.createPiece();
    		mainPanel.add(currentPiece);
    		currentPiece.repaint();
    		currentPiece.fall();
    		//mainPanel.remove(currentPiece);
    [B]                board.removeRows()
                    board.rowFall()[/B]
    		board.repaint();
    		addToScore(1);
    	}

    And why was mainPanel.remove(currentPiece); commented out?

  20. #89
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    When should I call removeRows and fallRows
    What does the design for the program say?

    why was mainPanel.remove(currentPiece); commented out?
    Ask the author of the program or read the comments that the author wrote describing what the code is doing.
    If you don't understand my answer, don't ignore it, ask a question.

  21. #90
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    I think I will just test it.

    --- Update ---

    Should it be shape[row][col] or the other way around (shape[col][row])?

  22. #91
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    I think of it as row and column
    If you don't understand my answer, don't ignore it, ask a question.

  23. The Following User Says Thank You to Norm For This Useful Post:

    wholegrain (February 18th, 2013)

  24. #92
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    	void fall() {
     
    		while(legalDown(currentX, currentY, board.contents, currentPiece.contents) && isNotOutOfBoundDown(currentX, currentY, board.contents, currentPiece.contents))
    		{
    		currentX--;
    		updateLocation();
        	updateSize();
    		}
     
    		Tetris.sleep(2000);
    	}

    uhm what do I need to replace board.contents and currentPiece.contents with?

    this fall method is inside the Piece class.

  25. #93
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    what do I need to replace board.contents and currentPiece.contents with?
    Why does that array need to be replaced?
    If you don't understand my answer, don't ignore it, ask a question.

  26. #94
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    I get error: cannot find symbol

    I kinda knew this problem would arise, but I can't think of a way to solve it.

    --- Update ---

    	static Board board;
    	static Tetris game;
     
    	JPanel mainPanel;
    	public Piece currentPiece;
    	int score = 0;
    	JButton scoreButton;

    This is in Tetris.java

    the currentPiece is already public, but I can't access the variables.

    the board is not public, I should make it public, but it won't change a thing probably.

  27. #95
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    error: cannot find symbol
    Please copy the full text of the error message and paste it here.
    If you don't understand my answer, don't ignore it, ask a question.

  28. #96
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    error: cannot find symbol line 75 while(legalDown(currentX, currentY, board.contents, currentPiece.contents) && isNotOutOfBoundDown(currentX, currentY, board.contents, currentPiece.contents))

    --- Update ---

    board.contents, currentPiece.contents board.contents, currentPiece.contents

    error: cannot find symbol
    error: cannot find symbol
    error: cannot find symbol
    error: cannot find symbol

    I get this 4 times I can only assume it's because of those variable names

  29. #97
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    18,735
    Thanks
    45
    Thanked 1,974 Times in 1,948 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    Which variable is not found? board, currentPiece or contents?
    If you don't understand my answer, don't ignore it, ask a question.

  30. #98
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    Quote Originally Posted by Norm View Post
    Which variable is not found? board, currentPiece or contents?

    contents most probably

    board = instance object of Board
    currentPiece = instance object of Piece
    contents = int[][] array inherited by Board and Piece.

    I seriously don't know what to pass in as parameters.

  31. #99
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 139 Times in 134 Posts

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    Quote Originally Posted by wholegrain View Post
    If that's the case, I find it weird that you couldn't help me the slightest bit and you kept asking those silly questions.
    I'm seeing amazing and patient help from Norm, despite this ludicrous and insulting post that you've never corrected or commented on. Consider retracting it.

  32. The Following User Says Thank You to curmudgeon For This Useful Post:

    wholegrain (February 18th, 2013)

  33. #100
    Member
    Join Date
    Feb 2012
    Posts
    96
    Thanks
    15
    Thanked 1 Time in 1 Post

    Default Re: Changing the attribute of an instance object of a class that's declared in another package and whose variable is constructed by its parent class

    I am sorry. I didn't know he had no idea what Tetris was. I thought he was trolling me.

  34. The Following User Says Thank You to wholegrain For This Useful Post:

    curmudgeon (February 18th, 2013)

Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. Instance Variable does't work in extended class?
    By jean28 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 21st, 2013, 12:36 AM
  2. Replies: 3
    Last Post: June 17th, 2012, 06:22 PM
  3. calling a changing variable from another class
    By bondage in forum Collections and Generics
    Replies: 11
    Last Post: December 7th, 2011, 09:17 AM
  4. Replies: 7
    Last Post: July 21st, 2011, 02:29 PM
  5. Access and set variable in parent class through child
    By java_newbie in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 19th, 2011, 10:44 PM