UrbanPro

Learn C++ Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is class? What is object? Describe these 2 with example.

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Tutor

Class is the collection of dataset and data members where as the object is the real time entity example :- public class classname { //datamembers //member functions } object:- classname objectname; the datamembers and member function of the class can be public,private and protected. We...
read more
Class is the collection of dataset and data members where as the object is the real time entity example :- public class classname { //datamembers //member functions } object:- classname objectname; the datamembers and member function of the class can be public,private and protected. We can call the class using classname.objectname read less
Comments

M. Tech.

Class is a template for creating objects. Object is an instance of a class. For example, "HumanBeing" is a class. You are an object of that class.
Comments

Class is a blueprint . Its a general framework and when to provide specific values to it,ot becomes and object. Ex. Class person { char name; int age; }a; Here person is a class and 'a' Is an object. a.name will have a specific value like vijay and a.age will be say 20.
Comments

Software Developer and Trainer with 10 years of experience

A Class is a template/blue print defined by the user (programmer). It provides space to hold all the details and also defines the behaviour of the class. An object is an instance created for that class and it contains the details and behaviour coded in the class. Say you have defined a class Player...
read more
A Class is a template/blue print defined by the user (programmer). It provides space to hold all the details and also defines the behaviour of the class. An object is an instance created for that class and it contains the details and behaviour coded in the class. Say you have defined a class Player - It contains a Name, Health and Lives. It can move, Jump and Shoot. Here , in the player class - Name, Health and Lives are data and move, jump, shoot are behaviour. Now using the class player if you create an object X. X will be created with the data and behaviour. So that it behaves like a player. Hope you understand read less
Comments

View 2 more Answers

Related Questions

What is Enum
An enumeration is a set of named integer constants. An enumerated type is declared using the enum keyword. C# enumerations are value data type. In other words, enumeration contains its own values and cannot inherit or cannot pass inheritance.
S
Which language is best, C, C++, Python or Java?
If you want to learn any languages C#, Java, ect. then must to learn C, C++ language as these are base or language to be strong in language skills. C++ is improved version of C language. C#, Java, J# and etc. which are improved version of C++.
Sribaghya
0 0
6
please tell me the best book for c programming language
LET US C by Yashwant Kanetkar. This book is very useful to improve the practical Knowledge. For Theory - Programming in C by Balagurusamy
Sunil
what is constructor ?
Constructor is a special method which invoke automatically as instance created.
Avnish
What are the benefits of learning C++?
Its a programming language helps to increase dicision making and logic reasoning power
Sunita

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

C Programming Language Basics - Easy way to learn
Computer - OverviewTodays world is an information-rich world and it has become a necessity for everyone to know about computers. A computer is an electronic data processing device, which accepts and stores...

C++ Fundamentals - Introduction
Introduction to C++ C++ CHARACTER SET It is the set of all valid characters that a language can recognize . It represents any letter, digit, or any other sign .C++ character set: LETTERS...
R

C++ Program[Working with structure]
//Header files #include<iostream>#include<cstring> //Namespace usedusing namespace std; //Structure definition struct store{ int p_id; char p_name; int quantity; float price; float amount; }; //...

Lets learn why OOPS is popular?
1. Supports reusability- It means that once a class is designed it works just like a template which can be inherited. 2. Provides better management- It means that abstract classes and interfaces guide...
R

Why we need to learn Programming languages?
Language is medium for communication. If two parties like to communicate or exchange the thoughts they must know a language. Language should be understandable by both the Parties. For example A wants to...

Recommended Articles

Introduction C++ is an excellent programming language and many of the applications are written in C++ language. It has generic, object-oriented & imperative programming features, and also provides facilities for low-level memory manipulation. Successor of C language, it is an OOP (object oriented programming) language...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Looking for C++ Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C++ Language Classes?

The best tutors for C++ Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C++ Language with the Best Tutors

The best Tutors for C++ Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more