E
Eric Kaplan
in C++ you can call function / methods without creating an object of
that Class?
like the the following, it calls Update() + Draw() functions by Class
name CInterfaceGroup + CContainer.
In Java, one can only call method by Class name if it is static
method.
In C++, you can call any function without creating an Object like -
CContainer * cc = new CContainer;
cc->Draw();
=========================
CGraphicsGroup::~CGraphicsGroup() {
}
void CGraphicsGroup::Create() {
}
void CGraphicsGroup::Update() {
CInterfaceGroup::Update();
}
void CGraphicsGroup:raw() {
CContainer:raw();
}
that Class?
like the the following, it calls Update() + Draw() functions by Class
name CInterfaceGroup + CContainer.
In Java, one can only call method by Class name if it is static
method.
In C++, you can call any function without creating an Object like -
CContainer * cc = new CContainer;
cc->Draw();
=========================
CGraphicsGroup::~CGraphicsGroup() {
}
void CGraphicsGroup::Create() {
}
void CGraphicsGroup::Update() {
CInterfaceGroup::Update();
}
void CGraphicsGroup:raw() {
CContainer:raw();
}