hi,
My question may be stupid, but i want to clear my doubt.
I am php, mysql developer.
While coding one of table requires objects from class A for each row.
Say it will create no of objects based on of row.
Is this concept is inconsistent ?
Class A
{
function __construct($userid)
{
}
}
class B
{
function action_add($userid)
{
}
}
Therefore Class A needs to create each object for every row of table.
Class B require one object for a table.
Question 1
Using class A (many objects) is inconsitent ?
Question 2
In two classes which is best.
help me out !
Thanks in advance.