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
What is a superclass in oop?
What is static in oop?
What is oops concept with example?
What is encapsulation in oop?
What is advantage of inheritance?
What is constructor in oop?
What is the difference between inheritance and polymorphism?
What is encapsulation with real life example?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is solid in oops?
i got a backdoor offer in process global,Bangalore..Can i work with it?
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
Can an interface inherit a class?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is inheritance in oop?