Assume that myCar is an instance of the Car class, and that the Car class has a member function named accelerate. Which of the following is a valid call to the accelerate member function?
A) Car->accelerate() ;
B) myCar::accelerate() ;
C) myCar.accelerate() ;
D) myCar:accelerate() ;
Correct Answer:
Verified
Q2: More than one constructor function may be
Q7: More than one destructor function may be
Q8: You must declare all data members of
Q9: Class objects can be defined prior to
Q13: The constructor function may not accept arguments.
Q26: What is the output of the following
Q31: The process of object-oriented analysis can be
Q32: When a member function is defined outside
Q34: For the following code, which statement is
Q45: If a local variable and a global
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents