well here i am just starting to do some coding about handphone to smartphone object..it's an inheritance project but not mine..;)
so i would like to share here about the errors and others.
any help is appreciated...
now my uml diagram i want to transfer to handwritten coding.so..
Handphone
-phoneNumber:string
-message: string
-credit:double
-sms_rate:double
-inbox:string[N*]
-object_counter:int
+<<constructor>> Handphone(no:string, cr:double, rate:double)
+smsEdit():void
+smsRead():void
+operator>>(recipient:Handphone&):void
+getCredit():double
+getObjCounter():int
+operator+(topUp:double): HandphoneSmartphone
-mms_message:image
-mms_inbox:image[N]
+operator>>(:Smartphone):void
+mmsRead():void
+mmsEdit():void
Fig. 2 Detail UML diagrams
here's my work...any comments ideas or something..i think it's ok..
class Handphone
{
private:
string phoneNumber;
string message;
double credit;
string[N*] inbox;
int object counter;
public:
Handphone ( string no, double cr,double rate)
void smsEdit();
void smsRead();
}
Class Smartphone : public Handphone
{
private:
image mms_message;
image[N] mms_inbox;
public:
void operator>>(Smartphone &s);
void mmsRead();
void mmsEdit();
}
can anyone explain what is string[N*] inbox; and image[N] mms_inbox;
what is the data type like?? why does it have a bracket?like [*] and [] the initial i suppose it's a pointer thing.