what is the difference between class and object?

Answer Posted / sanjith

Actually,
*Class is a collection of general declarations for data members and member functions ,that means it doesnot hold any memory.

*when we give certain values to a class ,objects are created.
that means a memory is allocated when objects are created.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is variable example?

588


What is oops in simple words?

570


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1569


What does no cap mean?

582


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1399






Can we define a class within the interface?

543


What is class and object with example?

578


Are polymorphisms mutations?

687


What is difference between inheritance and polymorphism?

557


Why is static class not inherited?

589


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

933


How can you overcome the diamond problem in inheritance?

758


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1764


write a programe to calculate the simple intrest and compund intrest using by function overlading

1654


officer say me - i am offered to a smoking , then what can you say

1566