What is an object?
Answers were Sorted based on User's Feedback
Answer / vikas patel
Object is the block of the memory to derived class...
ex
Rectangle rec = new Rectangle....
rec is the object
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / manoj kumar
Object is an entity with identity,state and behavior.
object is an entity that exist in the real word.
example:
int a;
a=10;
Identity of an object is a.State is represented by data value
i.e. 10 and behavior of the object is that it is integer type.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / vinod
Object is a separate copy of CLASS which has properties and
functions. it has it's own memory space and things. when
the properties are changed it will not affect the other
object of the same class
| Is This Answer Correct ? | 0 Yes | 2 No |
what is different between oops and c++
program in c++ that can either 2 integers or 2 floating point numbers and output the smallest number
#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }
What is encapsulation oop?
what is cast operator?
What is the default size allocated for array in the statement if size not specified " int a[] "
What is polymorphism explain its types?
is java purely oop Language?
49 Answers HCL, Infosys, TCS,
What is encapsulation?
What is a superclass in oop?
Why is abstraction needed?
What is encapsulation in ict?