what is the difference between class and object?

Answer Posted / rashid

Class is nothing but it is the collection of data member and
variable while object is an instance of a class.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is difference between class template and template class?

2245


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2040


Why do we need polymorphism in c#?

793


What are constructors in oop?

677


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1558






Why we use classes in oop?

667


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’.

1868


What is this pointer in oop?

651


What are the features of oop?

734


What is the purpose of enum?

658


What is an advantage of polymorphism?

703


What is the real time example of inheritance?

722


Can an interface inherit a class?

647


What is and I oop mean?

721


write a program to find 2 power of a 5digit number with out using big int and exponent ?

2005