What is Object and Class? What are the differences between
them?
Answer Posted / prabhakar
class is a collection of data and member functions.
objcet is instance of a class
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is polymorphism and its types?
What is overloading in oop?
What is purpose of inheritance?
What is the difference between inheritance and polymorphism?
Can we define a class within the interface?
Can we have inheritance without polymorphism?
Why is abstraction needed?
What is oops with example?
What is the difference between static polymorphism and dynamic polymorphism?
Why do we use class in oops?
What are properties in oop?
class type to basic type conversion
Which type does string inherit from?
Why do we use encapsulation in oops?
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