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 |
What happens if header file is included twice?
What are the different types of data structures in c?
How will you divide two numbers in a MACRO?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What is the difference between declaring a variable and defining a variable?
Explain how do you print an address?
what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year
what is the difference between while and do while?
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
When should the volatile modifier be used?
multiple of 9 without useing +,* oprator
What are pointers in C?