Predict the output
#include <iostream>
class Car
{
    
    float price;
    public:
    void acceptprice() 
    {
       std::cout << "Enter a price";
        std::cin>>price;
    }
    void honk() 
    {
       std::cout<<"Beep Beep! ";
    }
};
int main() 
{
    Car audi;
    audi.acceptprice();
    audi.honk(); 
    return 0;
    
}
Take price=45678

Posted on by