Question: Problem3. Declare a class named Pokemon with the following methods and instance variables: A (public) constructor with two int parameters and a string parameter. A
Problem3. Declare a class named Pokemon with the following methods and instance variables: A (public) constructor with two int parameters and a string parameter. A public method named level up with no parameters that returns nothing. A public method named summary with no parameters that returns a string. A public method named gain experience with an int parameter that returns nothing. info with no parameters that returns a string. A private int variable named combat points. A private int variable named level. A private string variable named name.
//C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
