What is an object?
Answers were Sorted based on User's Feedback
Answer / hima bindu
an instance of a class is called an object...
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / jagath
object is nothing but which is existing in the real world
and it has some properties,methods
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / shivanand
object is an instance ok a class through which we can access
class member and data.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / srikanth gunnala
In Object Oriented programming Object is a run time
entity(requirement) that binds the methods and data(this
methods are operated with that binded data)together.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / devender
object is a real time entity it has state,behavior
ex;animals,vechiles
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / priya
OBJECT:
*OBJECT IS A RUN TIME ENTITY.
*IT CAN ACCESS THE CLASS MEMBERS.
*WE CAN CREATE AN OBJECT BY THE CLASS NAME.
EXAMPLE:
class myclass
{
public:
int no;
void getdata();
void putdata();
void getdata()
{
cin>>no;
}
void putdata()
{
cout<<"NO:";
}
};
void main()
{
myclass.obj1;[-----------> object was created by the class name]
obj1.getdata();
obj1.putdata();
getch();
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / pasu nayan
object is a software bundle of related state and
behavior.it is a instance of a class.all are real world
entity.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / poorna chandar rao
object is collection properties and methods object existing
in real world
example : dog is a object its having eye,legs..etc these are
all properties and walk(),eat(),....etc these are all methods
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / rushi
ok,
If you say class is structure then object is a way to implement class,
that is object is a runtime entity of class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anuj tiwari
An object is any thing that exists in and occupies space in storage and on which operation can be performed.
| Is This Answer Correct ? | 0 Yes | 0 No |
diff between Abstract class Interfaces?
what is multithreading in c++ , what is difference between multithreading and singlethreading.
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
what is graphics
in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C
write a program to find 2 power of a 5digit number with out using big int and exponent ?
what is the size of an empty class
i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????
Program to check whether a word starts with a capital letter or not.
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined
WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.