Computer scienceProgramming languagesC++Basics of object-oriented programming

Classes, objects, and methods

Access operator

Report a typo

Suppose you have a class:

class DateClass{
public:
    int day;
    int month;
    int year;
};

If you want to change the day attribute, which operator should you use?

Select one option from the list

Create a free account to access the full topic