Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

Whats the working of classes and objects in c++??

class will work with collection of method & function.they will working in that all collection use in any time. one specific
class in created object than call with user requartd opration will be use .


A class is used to specify the form of an object and it combines data representation and methods for manipulating that data into one neat package. The data and functions within a class are called members of the class.
An object is an instance of the class which can define the class
0 0 0
The mechanism that allows you to combine data and function in a single unit is called a class.once a class is defined,you can declare variable of that type.once an object is declared,it can access the public members of the class.
A class variable is called object or instance.
in other words,a class would be the data type and the object would be the variable type.
classes are generally declared using the key word class,with following format:
              members 1;
                   members 2;
             members 3;

0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts