C
Programming and Technical
Category
In C++, which of the following creates a pigeon object of class bird?
a. Pigeon bird
b. Bird pigeon
c. Object pigeon of bird
d. None of these
Read Solution (Total 7)
-
- D. None of these. C is a case sensitive language so Bird != bird. Correct definition will be bird pigeon.
- 7 years agoHelpfull: Yes(4) No(0)
- A as syntax is class obj_name
- 7 years agoHelpfull: Yes(2) No(1)
- Answer-B
Class-Bird
Object-pigeon
Syntax-Class object-Bird pigeon - 7 years agoHelpfull: Yes(1) No(0)
- Answer: B
syntax for creating object: CLASS NAME OBJECT_NAME; - 7 years agoHelpfull: Yes(1) No(0)
- bird pigeon
- 6 years agoHelpfull: Yes(1) No(0)
- Object creation has its syntax as
- 7 years agoHelpfull: Yes(0) No(1)
- Right ans is b. Because Bird is class and pigeon is object. In C++ we create object like as Class_name object_name;
- 7 years agoHelpfull: Yes(0) No(0)
C Other Question