Answer the following statements true (T) or false (F)
1. The constructor for class counter is automatically executed each time an object of type counter is declared.
2. All member functions of a class must be public
3. The terms "data members" and "attributes" of a class are interchangeable.
4. A state attribute of a class should be initialized prior to use.
5. There are at most 5 operations that can be performed on the object of a class.
1. True
2. False
3. False
4. True
5. False
You might also like to view...
Which of the following is the correct way to declare a public read-only property?
a.``` Public ReadOnly Property PropertyName() As DataType Statements End Property ``` b.``` Public Property ReadOnly PropertyName() As DataType Get Statements End Get End Property ``` c. ``` Public ReadOnly Property PropertyName() As DataType Get Statements End Get End Property ``` d.``` ReadOnly Public Property PropertyName() As DataType Set Statements End Set End Property ```
Extend the form-letter recipe to take an input of a pet’s name and type, and reference the pet in the form letter."Your pet "+petType+","+petName+" will love our offer!" might generate "Your pet poodle, Fifi, will love our offer!".
What will be an ideal response?