adspace
What is the difference between a class and an object, and how do these terms relate to each other?
Answer Posted / Rampravesh Srivastava
A "class" is a blueprint or template that defines the structure, behavior, and relationships of objects in Object-Oriented Programming (OOP). An "object", on the other hand, is an instance of a class. You create objects by using the 'new' keyword to invoke the constructor of the class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers