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 and I oop mean?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort
difference between static and non-static variables?
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?
What is an object?
why we are declare the function in the abstract class even though we are declaring it in Derived class?
difference between abstraction and encapsulation with progarammatic eg. hi,just recently i went for an interview .The interviewer asked what is the difference between abstraction and encapsulation with programmatic eg. I gave the answer as encapsulation mean hiding the relevant data which is not useful for the user, eg a electric fan .hiding the information how the electricity is converted into machanical energy. abtraction showing only the relevant data to the user eg electric fan. it look ,its color ,it design etc only relevant data. Then the interviewer asked me, give me some programmic eg .I Said Let assume a web form having control like textbox,button etc. The user can view textbox,button etc this is the eg of abstraction and when the user click on the button how he is redirected is not known by the user is the eg of the encapsulation. Am I Correct .was the answer given by me is perfect .now i am planing to go for an another interview should i give the same answer.IF not please suggest me a better answer.with some good eg Please help
Explain the concepts involved in Object Oriented programming.
Is abstract thinking intelligence?
Can anyone please explain runtime polymorphism with a real time example??at what ciscumstances we go for it??
how to write a java program for an output ****0 ***01 **012 *0123 01234
What are generic functions and generic classes?