I am a newbie in java and I am trying to implement an interface.
So main class
public interface Matrix{ //returns number of rows int numRows(); //returns number of columns int numColumns(); int addRows(...); .... } Now basically what I am trying to solve is lets say.. I have two matrices matrixa and matrixb of type Matrix.
I want to basically extend the matrix row wise. So if matrixa had 10 rows and matrixb has 2 rows. Then I want to return matrixa+=matrixb
(offcourse assuming that number of columns are same.)
What is the right way to do this?