How do you initialize base class?

Both methods assign the argument values to the appropriate data members of the class. If you do not explicitly initialize a base class or member that has constructors by calling a constructor, the compiler automatically initializes the base class or member with a default constructor .

Sizin İçin Seçtik  What are the three components that a C++ system has?

Leave a Reply

Your email address will not be published. Required fields are marked *