WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE
SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.
Answers were Sorted based on User's Feedback
Answer / kp shekhawat
A class is a collection of variables
Object, use the new statement to instantiate a class
Is This Answer Correct ? | 0 Yes | 1 No |
what is the need of abstraction? what is abstraction?what is the abstraction for stack?
WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??
21 Answers Biocon, MIT, NIIT,
What does and I oop and sksksk mean?
What is a class?
32 Answers Infosys, TCS, Thylak,
State what is encapsulation and friend function?
diff between Abstract class Interfaces?
What type of Job you are providing?
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }
What is data binding?
Difference ways of Polymorphism?
where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
What does it mean when someone says I oop?