Skip to content

SejalCh/Classes-and-Objects-in-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Classes-and-Objects-in-CPP

##AIM:To study classes and objects in C++

##THEORY:

C++ is an object-oriented programming language.
Everything in C++ is associated with classes and objects, along with its attributes and methods. Attributes and methods are basically variables and functions that belongs to the class. These are often referred to as "class members".
A class is a user-defined data type that we can use in our program, and it works as an object constructor, or a "blueprint" for creating objects.
When a class is defined, only the specification for the object is defined; no memory or storage is allocated.
To use the data and access functions defined in the class, we need to create objects.

Syntax

class Class name { // The class
public: // Access specifier
int variablename; // Attribute (int variable)
string variable name; // Attribute (string variable)
};

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages