What is Class in Object-oriented programming?

0
(0)

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.

For Example:

If the fruit has been defining as a class, then the statement

Fruit Mango;

Will create an object mango belonging to the class fruit.

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

As you found this post useful...

Share this post on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?