What is an object?
Answers were Sorted based on User's Feedback
Answer / shruti
An object is the instance of the class..
it is the only gateway to access the entities defined in
the class..
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / abalonesoft
A region of storage with associated semantics.
After the declaration int i; we say that "i is an object of
type int." In OO/C++, "object" usually means "an instance of
a class." Thus a class defines the behavior of possibly many
objects (instances).
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / deepak saini
Object is runtime representation of class in memory.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / noopur
an object is the real instant of a class where class is a user defined datatype and class is a variable of that data type also called complex variable.
| Is This Answer Correct ? | 1 Yes | 0 No |
main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }
How can I make a program in c to print 'Hello' without using semicolon in the code?
9 Answers C DAC, Practical Viva Questions,
Can we declare variables anywhere in c?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
Using which language Test cases are added in .ptu file of RTRT unit testing???
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What is function and its example?
How many levels of indirection in pointers can you have in a single declaration?
0 Answers Agilent, ZS Associates,
how can you print&scan anything using just one character? :) HINT: printf,scanf similer
How can I implement a delay, or time a users response, with sub-second resolution?
what is the use of c program?
4 Answers Synergy, Web Synergies,
What is an anonymous union and where to apply that ?