Question: CAN SOMEONE ANSWER THESE THANK YOU!!! What is a constructor? What is a default constructor? What is the consequence, if any, if a class does

CAN SOMEONE ANSWER THESE THANK YOU!!!

What is a constructor?

What is a default constructor? What is the consequence, if any, if a class does not provide a default constructor? (Hint: if there are no constructors and if there are some constructors)

How many constructors can a class have? Can you have a class with no defined constructors? If a class has more than one constructor, which of them is invoked?

How are an objects data members initialized if a class has only an implicitly defined default constructor? In other words, no constructors have been explicitly defined for the class.

What is the interface of a class? What is the implementation of a class?

What's the benefit of making member variables or functions of a class private?

What is a member function and how does it differ from a nonmember function (i.e. an external functions)?

What is a mutator function and what is an accessor function? Explain why a class might provide these member functions.

What is the purpose of the scope resolution operator?

Explain the difference between a class and an object?

What is a header file? What is a source code file? Discuss the purpose of each.

Explain how an object declared to be const differs from a non const object.

Explain why we must initialize data members declared to be static const in the class definition of the class.

Explain why data members declared to be static can be accessed independently of any object.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!