UrbanPro

Learn C++ Language from the Best Tutors

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

Search in

What is an object?

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

14 Year Experienced in Teaching Maths, Physics and Chemistry.

variable created for the data type class
Comments

Tutor

An object is simply an instance of a class.
Comments

Conceptual Learner, Critical Thinker

Before defining the object, i would like you to remind the built in data types (int, float, char etc) and user defined data types (Struc, Union, Class etc). To identify any data types, we declare variable (Variable is an identifier). For ex- Int x, y; Float a, b; this x and y or and b identify or point...
read more
Before defining the object, i would like you to remind the built in data types (int, float, char etc) and user defined data types (Struc, Union, Class etc). To identify any data types, we declare variable (Variable is an identifier). For ex- Int x, y; Float a, b; this x and y or and b identify or point out the "type of data or characteristics of data" stored in it. In similar way, object is another variable of type Class which can represent any real world entity or its attribute. For example, Apple, Orange, Banana all comes under one category Fruit. It has many attribute like color, size, taste etc. To simplify the representation of fruits, we defines user built data type called Class. Declaration: Class Fruit { String color, taste; / /These are the properties of fruit. float price, amount; } Object declaration // In similar way of user defined data type like Int a, b; Fruit apple, orange, banana; // these are the variables/instances of fruit. read less
Comments

Software Developer and Trainer with 10 years of experience

An object is an instance of a class. It is an entity created as per the specifications and behaviour coded in the class. Say you have a class Wallet that defines a Wallet (Purse) . And you have specified in the class like it have 2 compartments, 2 pouches, one notepad. Also you have coded the behaviour...
read more
An object is an instance of a class. It is an entity created as per the specifications and behaviour coded in the class. Say you have a class Wallet that defines a Wallet (Purse) . And you have specified in the class like it have 2 compartments, 2 pouches, one notepad. Also you have coded the behaviour of the Wallet is to keep Money, take Money and money Left. If you create an object to the class Wallet name MyWallet, you are creating a Wallet with the name MyWallet. You can keep or take any amount of money depending on the money left. Similarly you can create any number of wallets using the Wallet Class as and when required. read less
Comments

Tutor

In the class-based object-oriented programming paradigm, "object" refers to a particular instance of a class where the object can be a combination of variables, functions, and data structures.
Comments

View 3 more Answers

Related Questions

i am a student of 11th class and i want to make my future in C++ is this possible i am take arts inn 11th class
Definitely.. but you should be flexible moving to java/ other languages as well.. requirement/ demand keep changing in software. i can do the needful.. with 18+ yrs exp in working on live projects...
Rajneesh
What is the actual size of INT in the C language, 2 or 4 bytes?
The actual size to int is determined by the compiler as the program runs. But theoretically the size is 2 bytes. You can increase the size by adding keyword long infront of it to make the size 4 bytes. Eg int a; // 2 bytes Long int b; // 4 bytes
Kunal
what do you mean scope resulation
According to me Scope resolution operator(::) is used to define a function outside a class or when we want to use a global variable but also has a local variable with same name.
Sunil
What is the difference between class and structure?
Basic difference between class and structure is that Structures are used to store data and a class defined both data and the functions that access that data.
Aparna
0 0
8
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

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

Ask a Question

Related Lessons

Data Structure: Searching
Searching Searching means finding an element in an array. There are two type of searching techniques : Linear Search Binary Search In linear search, to find the element array is traversed and...

Variables and Storage Classes
Variables and Storage Classes auto default variable type local to a function static retains the values between function calls initialized only once unavailable outside the scope of the function...

Importance Of Function Prototype In C
Function prototype tells compiler about number of parameters function takes, data-types of parameters and return type of function. By using this information, compiler cross checks function parameters and...

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

Do You Know How Is Size Of Structure Defined?
Size of the structure is defined based on multiplies of bigger data type member in the structure. Example: If a structure contains integer, char, short data type, then size of the Structure will be multiples...

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 >

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 >

Applications engineering is a hot trend in the current IT market.  An applications engineer is responsible for designing and application of technology products relating to various aspects of computing. To accomplish this, he/she has to work collaboratively with the company’s manufacturing, marketing, sales, and customer...

Read full article >

Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...

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