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 encapsulation with example?
What does and I oop mean?
What exactly is polymorphism?
What is sub classing in c++?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What do we mean by a hidden argument in a function?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
Templates mean
What are the 4 pillars of oop?
What is polymorphism in oop example?
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
all about pointers