difference between class and object

Answer Posted / maheshbirajdar

Class -
Class is collection of data member and member function .....
Class is logical entity...
Class is blueprint of object.....

class is collection of objects which holds properties of class...occupy
Object -

object that holds state , behaviour and identity properties

object is nothing but the having same memory space in ram.(minimum 1 byte compiler dependent).....

object is instance of class...............

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

1408


write knight tour problem which is present in datastructure

2167


Write a program to reverse a string using recursive function?

1792


Why do we need oop?

671


Where is pseudocode used?

565






what are the different types of qualifier in java?

1843


What is abstract class in oops?

600


How does polymorphism work?

635


What is destructor oops?

625


Is abstract thinking intelligence?

595


What causes polymorphism?

577


Why oops is important?

615


What are the data types in oop?

608


What is object in oops?

615


class type to basic type conversion

1839