473,378 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Differentiate between Objects and Classes

Differentiate between Objects and Classes in cpp
Feb 21 '14 #1
2 2839
Banfa
9,065 Expert Mod 8TB
Objects are anything that uses actual memory, like the instantiation of a class or an int or an array of long or a pointer.

A class is a definition of a set of methods and data that go together to make an object when instantiated.
Feb 21 '14 #2
Sherin
77 64KB

Class


A class is a blueprint from which you can create the instance, i.e., objects.

A class is used to bind data as well as methods together as a single unit.

Classes have logical existence.

A class doesn't take any memory spaces when a programmer creates one.

The class has to be declared only once.

Object

An object is the instance of the class, which helps programmers to use variables and methods from inside the class.

Object acts like a variable of the class.

Objects have a physical existence.

An object takes memory when a programmer creates one.

Objects can be declared several times depending on the requirement.
Sep 1 '20 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Scott Townsend | last post by:
I'm trying to create a class library of a bunch of objects and I'm looking for a way to diagram and document the objects. Is there a tool that people use to do this? I've seen many Database...
0
by: Daniel | last post by:
when loading this dll into an assembly via late binding how do i diferentiate between outer CAsmToLoad class and the inner class CAsmToLoad inside of CAsmToLoad2? public class CAsmToLoad {...
12
by: Noel | last post by:
Hello, I'm currently developing a web service that retrieves data from an employee table. I would like to send and retrieve a custom employee class to/from the webservice. I have currently coded...
10
by: Mark Rae | last post by:
Hi, This relates to the previous thread "Disappearing Sessions", but is a bit more generic so I thought I'd start a new thread. This one relates to the storing of objects in Session once only to...
5
by: Jon Clements | last post by:
Hi All, I've reached the point in using Python where projects, instead of being like 'batch scripts', are becoming more like 'proper' programs. Therefore, I'm re-designing most of these and...
4
by: turnitup | last post by:
I am in the process of transforming a procedural code base into an OO code base. The code lends itself to this refactoring and it is proving an effective exercise. However, I am running into a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.