What is the difference between an object and a class?
Answers were Sorted based on User's Feedback
Answer / manas
a class is a datatype that abstratcs data and implementations
while an object is an instance of the class which wraps up data. An object has identity, state and behavior
| Is This Answer Correct ? | 2 Yes | 0 No |
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 :( :-?
Why many objects can working together? How objects working togetherM I want to see example code.
Write a program to reverse a string using recursive function?
how to find the correct email address format by using the programe?
Why multiple inheritance is not allowed?
I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.
In multilevel inheritance constructors will be executed from the .... class to ... class
How is data security provided in Object Oriented languages? ?
Why do we need oop?
Program to read a comment string
In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?
What is abstract class in oops?