Group Discounts available for 3+ students and Corporate Clients

Objects and Classes in C++


  • ‘C’ is a collection of functions but ‘C++’ is a collection of class and object
  • Object is an instance of class
  • Allocating memory for members of class, is called as instance


eg :

int x

float y                                  instance

employee emp


What do you mean by SBI of an object  ?

SBI  –  – > state behavior identity

  • SBI stand for state, Behavior and identity since every object has the above the rule

State :  It is a just a value to the attribute of an object at a particular time.

Behavior    It describes the action and their reactions of that object

Identity :   An object has an identity that characterizes its own existence





Class Object
Data type/ user defined Instance of class
It is a logical entity Object is a physical entity
Class does not have state it having state.



“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at, we will update the article in 24 hours.”

0 Responses on Objects and Classes in C++"

Leave a Message

Your email address will not be published. Required fields are marked *


Please Enter Your Details and Query.
Three + 6