---
title: "What are objects and classes in OOPs programming?"  
description: "What are objects and classes in OOPs programming?"  
author: "Ravi Vishwakarma"  
published: 2021-08-23  
updated: 2021-08-23  
canonical: https://www.mindstick.com/forum/156696/what-are-objects-and-classes-in-oops-programming  
category: "c#"  
tags: ["c#", "java", "c++"]  
reading_time: 1 minute  

---

# What are objects and classes in OOPs programming?

What are [objects](https://www.mindstick.com/forum/145447/what-are-objects) and classes in [OOPs programming](https://www.mindstick.com/forum/156693/how-many-types-of-classes-are-in-c-sharp-oops-programming)?

## Replies

### Reply by Ashutosh Kumar Verma

## Objects-

Objects are the real world entity that exists in the world (ex- Ball, Pen, Paper, Book, Toys, etc.). But in the [programming](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming) language an object is the instance of the class. It defines the behavior and characteristics of class. There can be one or more than one objects are created of a class in a program. It consumes the memory space when it created.

## Class-

A class is a container which contain the fields, methods and properties. A class is logical entity type because it does not consume memory space when it created and also does not exists in real world. Class can creates its own objects to execute their statements in program.

There are generally 4 types of class is created in programming language i.e.

1- Abstract class (by using 'abstract' keyword).

2- Static class (by using 'static' keyword).

3-Sealed class (by using 'sealed' keyword).

we can say one more type of class 'Regular class' which declare without any keyword except 'class' keyword.

4- Partial class (by using 'partial' keyword).

\


---

Original Source: https://www.mindstick.com/forum/156696/what-are-objects-and-classes-in-oops-programming

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
