potato

#include <iostream>

// Step 1: Declare a class named Potato
class Potato {
public:
    // Step 2: Declare a public member function named Cook
    void Cook() {
        // Step 3: Display a message indicating that the potato is being cooked
        std::cout << "Cooking the potato..." << std::endl;

        // Step 4: Call the private member function CookInside
        CookInside();

        // Step 5: Display a message indicating that the potato is cooked
        std::cout << "Potato is cooked!" << std::endl;
    }

private:
    // Step 6: Declare a private member function named CookInside
    void CookInside() {
        // Step 7: Display a message indicating that the potato is being cooked inside
        std::cout << "Cooking inside the potato..." << std::endl;
    }
};

// Step 8: Declare the main function
int main() {
    // Step 9: Create an instance of the Potato class
    Potato myPotato;

    // Step 10: Call the Cook method on the Potato instance
    myPotato.Cook();

    // Step 11: Return 0 to indicate successful program execution
    return 0;
}