Object Oriented Programming C++
Readers of Nick’s Blog want to know how many of his posts arerants, and how many are raves. The class NickBlog contains privatevariables for its rant and rave counters, a constructor thataccepts these counters and a function void showAnger() that returnsthe total of rant and rave.
i. Define NickBlog and implement showAnger.
ii. IfderivedclassesofNickBloghadtheirownimplementationofvoidshowAnger(),
how could you ensure that the correct showAnger would beused?
Expert Answer
An answer will be send to you shortly. . . . .