Class and Objects Notes | EduRev

Created by: Abhay Kapoor

: Class and Objects Notes | EduRev

 Page 1


Topic  
  CLASS   
             AND   
                        OBJECTS. 
                  
By Hardeep Singh 
Page 2


Topic  
  CLASS   
             AND   
                        OBJECTS. 
                  
By Hardeep Singh 
? Definition of Class  
? Declaration of class 
? Definition of object 
? Relationship of class and 
object 
? Accessing a member 
function 
? Arrays and classes  
? Class and object scope 
? Static data member 
? Static member function 
 
 
CONTENTS  
By Hardeep Singh 
Page 3


Topic  
  CLASS   
             AND   
                        OBJECTS. 
                  
By Hardeep Singh 
? Definition of Class  
? Declaration of class 
? Definition of object 
? Relationship of class and 
object 
? Accessing a member 
function 
? Arrays and classes  
? Class and object scope 
? Static data member 
? Static member function 
 
 
CONTENTS  
By Hardeep Singh 
Example  
    Fruit  Mango 
 
 
    Class  Object 
 
 
 
  DEFINITION OF      
CLASS  
By Hardeep Singh 
Page 4


Topic  
  CLASS   
             AND   
                        OBJECTS. 
                  
By Hardeep Singh 
? Definition of Class  
? Declaration of class 
? Definition of object 
? Relationship of class and 
object 
? Accessing a member 
function 
? Arrays and classes  
? Class and object scope 
? Static data member 
? Static member function 
 
 
CONTENTS  
By Hardeep Singh 
Example  
    Fruit  Mango 
 
 
    Class  Object 
 
 
 
  DEFINITION OF      
CLASS  
By Hardeep Singh 
? Class Tag Name 
? Data member 
? Member Function 
? Program Access Level 
a) Private 
b) Public  
DECLARATION OF 
CLASS 
By Hardeep Singh 
Page 5


Topic  
  CLASS   
             AND   
                        OBJECTS. 
                  
By Hardeep Singh 
? Definition of Class  
? Declaration of class 
? Definition of object 
? Relationship of class and 
object 
? Accessing a member 
function 
? Arrays and classes  
? Class and object scope 
? Static data member 
? Static member function 
 
 
CONTENTS  
By Hardeep Singh 
Example  
    Fruit  Mango 
 
 
    Class  Object 
 
 
 
  DEFINITION OF      
CLASS  
By Hardeep Singh 
? Class Tag Name 
? Data member 
? Member Function 
? Program Access Level 
a) Private 
b) Public  
DECLARATION OF 
CLASS 
By Hardeep Singh 
Class class-name 
{ 
private: 
data member 
public: 
member function 
}; 
SYNTAX OF CLASS 
By Hardeep Singh 
Read More
Offer running on EduRev: Apply code STAYHOME200 to get INR 200 off on our premium plan EduRev Infinity!