Vidyalelo
Computer Science · Q279

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 279

Q279

Which of the following statements is false?

A.
A class encapsulates all of an object's attributes and behaviors
B.
An example of an attribute is the minutes variable in a time class
C.
An example of a behavior is the setTime function in a time class
D.
A class is considered an object
Answer
E.
An object created from a class is referred to as an instance of the class

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board