What is Class in Object-oriented programming?
A class is a collection of objects similar types. For examples, Mango, Apple and orange members of class fruit. Classes are user-defined that types and behave like the built-in types of a programming language.
If the fruit has been defining as a class, then the statement
Will create an object mango belonging to the class fruit.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?