I have code using this classes: Pedido.CLASS.PHP <?php class PedidoVO { var $idPedido; var $idUsuario; var $fecha; var $estado; var $detallePedido = array(); function PedidoVO($ip, $iu, $f, $e){ $this->idPedido = $ip; $this->idUsuario = $iu; $this->fecha = $f; $this->estado = $e; } } ?> PHP: and this: PedidoDAO.CLASS.PHP <?php class PedidoDAO { function PedidoDAO(){ } function obtener($id){ $DB = new ConexionDB(); $query = "SELECT id_pedido, id_usuario, fecha, estado "; $query .= " FROM pedido WHERE id_pedido=".$id; $recordSet = $DB->dbLink->Execute($query); if (!$recordSet || ($recordSet->RecordCount() <= 0)) { Debug::println("PedidoDAO: obtener: " . $DB->dbLink->ErrorMsg()); return false; } else { $fila = $recordSet->FetchRow(); $vo = new PedidoVO($fila['id_pedido'], $fila['id_usuario'], $fila['fecha'], $fila['estado']); } return $vo; } } ?> PHP: This code mean is using OOP with PHP5 ?