UrbanPro

Learn IT Courses from the Best Tutors

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

Search in

Can u tell the Difference between struct and class in C++? OR why struct is value type and class is reference type? Note : Dont say syntax difference

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Software Professional Trainer with 26+ years of Experience in Software Design and Development

In C++ struct all the members(member variables and member functions) are public by default. In C++ class all the members(member variables and member functions) are private by default; value type means there will be two memory location, in reference there is no new memory location. Both variable...
read more
In C++ struct all the members(member variables and member functions) are public by default. In C++ class all the members(member variables and member functions) are private by default; value type means there will be two memory location, in reference there is no new memory location. Both variable will be same. read less
Comments

B.Tech(Information Technology) Diploma(Information Technology)

refrence not take memory while struct take memory strut will not use inheritance class will use it
Comments

16 Yrs of Experience in Teaching

Area of datamembers and datafunctions in struct are by default public , while class having private, Storage of struct and class are different heap and stack so..
Comments

IT Professional Trainer with 15 years of experience in IT Industry

In C++, a structure is same as class except the following differences: 1) Members of a class are private by default and members of struct are public by default. 2) When deriving a struct from a class/struct, default access-specifier for a base class/struct is public. And when deriving a class,...
read more
In C++, a structure is same as class except the following differences: 1) Members of a class are private by default and members of struct are public by default. 2) When deriving a struct from a class/struct, default access-specifier for a base class/struct is public. And when deriving a class, default access specifier is private. read less
Comments

View 2 more Answers

Related Questions

Can a commerce student become a web developer without having any prior knowledge?
Is it possible? Then yes. Is it easy? Then no. Most people think web development just means, learning HTML, CSS, JavaScript and a backend language like PHP for example. But web development is much more...
Sravan
If I did "Cyber security and Ethical hacking" course. Will I get any certificate from that institution?
The certificate from any training institute does not have any value when you are applying for a job. You need to have standard certifications like CEH or Security+ to prove your knowledge. Its better to...
Hrishikesh
0 0
5
I have completed B.com, MBA F&M and done SAP MM Consultant level training after 5 yrs of experience in SAP MM end-user, but I am not getting job opening for SAP MM Consultant fresher. Can anyone help to give a solution for getting entry in SAP MM fresher? Or suggest the best non-sap course with fresher job opportunities?
The best way is to share in a post on LinkedIn as that is the best professional network where you can easily explore jobs according to your requirements. Build as many connections as you can to reach recruiters with ease.
Priya
What is BIOS?
The term BIOS is an acronym for Basic Input/Output System. BIOS is a low level software, the first software to run when you power up the system. It is as the software that intermediates data transfers...
Soumya
Which one is the best development course and coaching institute in Pune, I would like to join that, Please help.....
If you are Pune , Viman Nagar then QuickITDotNet is best option for development Course . Trainer is working in Hexaware having 12+years of experience and he got "Top Architect Award in India". QuickITDotNet...
Surbhi
0 0
7

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

Ask a Question

Related Lessons

How To Make A Component In Sketchup ?
Select the geometry you want to include in your component. Or right click make component Choose Edit > Make Component from the menu bar, or context-click the selection and choose Make Component....

How To Be A Hadoop Developer?
i. Becoming a Hadoop Developer: Dice survey revealed that 9 out of 10 high paid IT jobs require big data skills. A McKinsey Research Report on Big Data highlights that by end of 2018 the demand for...

Practical use of Two way Look-up (Category: Advanced Excel)
///////////////////////////////////////////////////////////////

Arrange and View Multiple Worksheets at Once in Excel
Arrange and View Multiple Worksheets at Once in Excel This feature allows you to view multiple worksheets at once from the same workbook at the same time. You need to follow beneath simple...

Easy way to remember Java keyword.
ACCESS MODIFIER ACCESS SPECIFIER abstract, assert, const, final, native, static, strictfp, super, synchronized, this, transient, void, volatile public, private, protected, default DATA...

Rohit Deshbhratar

1 0
0

Recommended Articles

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 >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

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 >

Looking for IT Courses ?

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 IT Courses Classes?

The best tutors for IT Courses Classes are on UrbanPro

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

Learn IT Courses with the Best Tutors

The best Tutors for IT Courses 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