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 data binding in oops?

574


what is the sylabus for priliminaries?

1674


What is polymorphism explain its types?

670


What is property in oops?

557


write knight tour problem which is present in datastructure

2154






What is overriding in oops?

592


Why interface is used?

547


Why do we use polymorphism?

566


Is react oop?

603


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1644


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1685


Why is polymorphism used?

575


what type of question are asked in thoughtworks pair programming round ?

1751


How do you define social class?

594


What is encapsulation process?

573