+ 5
Create a class Phone with four fields: a name of the owner, a code of the country, a code of the city and a phone number. In c++
c++
6 Respuestas
+ 10
class Phone 
{
    private string owner;
    private int codeOfCountry;
    private int codeOfCity;
    private string phoneNumber;
    
    public Phone(string owner, int code1, int code2, string number)
    {
        this.owner = owner;
        codeOfCountry = code1;
        codeOfCity = code2;
        phoneNumber = number;
    }
}
+ 3
if we enter the first digit  of phone  number ,this code output the people
+ 2
that's very simple using function it will be more easier to use like "Constructor".
+ 2
really awesome at C++🙏
+ 1
thanks 😘
+ 1
you are awesome at challenges maria



