Дано визначення класів:
class C1 {
public:
void aPolymorphMethod(); //
virtual void aVirtualMethod() = 0; // абстрактний метод
};
class C2: public C1 {
public:
virtual void aVirtualMethod(); //
};
void C1::aPolymorphMethod()
{
aVirtualMethod();
}
void C2::aVirtualMethod(){}
Чому в класі С1 повинен бути метод aVirtualMethod ? Відповідь пояснити.
Given the differential equation (E):
Using the constant variation method, Look for the solutions of (E) of the form:
The solutions of the differential equation are
Given the differetnial equation (E):
Given the function defined by
the function is solution of the differential equation
Given the differential equation (E):
This equation has a particular solution of the form "first degree polynomial exp(2x)"
Given the differential equation (E):
Given the differential equation (H) :
Let be any solution of the equation.