Pleas solve this ASAP 2 Find the error(s) in each of the following and explain h
ID: 3552593 • Letter: P
Question
Pleas solve this ASAP
2 Find the error(s) in each of the following and explain how to correct it. (a) Assume the following prototype is declared I class Date void Date int (b) The following is a partial definition of class DumbBell: class Dumb Bell public void setWeight (int w) weight wa void getWeight const return weight private int weight int main Dumb Bell bar; Bar weight 200, cout The weight is getWeight endl return 0 (c) Assume the following prototype is declared in class Employee int Employee const char const charExplanation / Answer
((1))
Destructors don't have any return type and not even any arguments so the correct definithion is :
~Date();
-----------------------------------------------------------------------------------------------------------------------------------------------
((2))