Embed presentation
Download to read offline


![âĸ Object
# An object is an instance(occurence) of a class, when a class is
defined no memory is allocated but when object is created memory is
allocated.
# Syntax:
Class_name obj_name;
# Example:
Class student
{
private :
int roll;
char name [10];
public :
void getdata ()
void putdata ()
};](https://image.slidesharecdn.com/pointer-to-object-221101053226-9661002d/75/pointer-to-object-pptx-3-2048.jpg)





This document provides an explanation of classes, objects, and pointers in C++. It defines a class as a user-defined data type with data members and member functions. An object is an instance of a class in memory. Pointer variables can store the memory addresses of other variables and objects. The ampersand operator (&) returns the address of a variable, while the asterisk operator (*) dereferences a pointer to access the value at a memory address.
Introduction to topics like pointer, class, object, referencing operator, and pointer to object across the presentation.
A class is defined as a user-defined data type with data members and member functions, using the keyword 'Class'. Example given: Class car.
An object is an instance of a class, with memory allocated upon creation. Example: Class student with data members roll and name.
Describes how to declare pointers to objects in C++. Syntax and examples given with the usage of '.' and '->' operators.
Pointer defined as a variable storing memory address of another variable. Syntax and examples of different data type pointers are provided.
Explains referencing (&) and dereferencing (*) operators with examples to understand memory address referencing.
Transition to a program focused on demonstrating the concepts of referencing and dereferencing.
End of the presentation, summarizing the points discussed.


![âĸ Object
# An object is an instance(occurence) of a class, when a class is
defined no memory is allocated but when object is created memory is
allocated.
# Syntax:
Class_name obj_name;
# Example:
Class student
{
private :
int roll;
char name [10];
public :
void getdata ()
void putdata ()
};](https://image.slidesharecdn.com/pointer-to-object-221101053226-9661002d/75/pointer-to-object-pptx-3-2048.jpg)




