Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between class and structure in C++?

Answers were Sorted based on User's Feedback



what is the difference between class and structure in C++?..

Answer / pradeepramagiri

class members have the privite access by default where as
structure members have the public access by default

Is This Answer Correct ?    34 Yes 2 No

what is the difference between class and structure in C++?..

Answer / murali

A class is inhertied to onther class but structure we
cannot inhertied

Is This Answer Correct ?    18 Yes 8 No

what is the difference between class and structure in C++?..

Answer / balaram singh

1->CLASS IS THE ADT WHERE AS STRUCTURE IS UDT
2->CLASS NEEDS ACCESS SPECIFIER SUCH AS PRIVATE,PUBLIC &
PRIVATE WHERE AS STRUCTURE MEMBERS CAN BE ACCESSED BY
PUBLIC BY DEFAULT & DO'NT NEED ANY ACCESIFIERS.
3->CLAAS IS OOPS WHERE STRUCTURE IS BORROWED FROM
TRADITIONAL STRUCTURED(POP) CONCEPT

Is This Answer Correct ?    13 Yes 4 No

what is the difference between class and structure in C++?..

Answer / navneet kaur

c is a procedure oriented language but c++ is a object
oriented language.

Is This Answer Correct ?    6 Yes 3 No

what is the difference between class and structure in C++?..

Answer / vijayendra singh chand

The main difference between class and structure is that
class is reference type whereas structure is value type.

Is This Answer Correct ?    5 Yes 4 No

what is the difference between class and structure in C++?..

Answer / naveen tuteja

A structure can't contain the static ans constant variable
but a class can contain both.

Is This Answer Correct ?    4 Yes 4 No

what is the difference between class and structure in C++?..

Answer / naveen tuteja

We can declare a structure without a name tag but we cannot
declare a class without name tag.

Is This Answer Correct ?    4 Yes 4 No

what is the difference between class and structure in C++?..

Answer / renuka

IN CLASS WE USE BOTH VARIABLE AND FUNCTION OR IN STRUCTURE WE USE VARIABLE ONLY....

Is This Answer Correct ?    3 Yes 3 No

what is the difference between class and structure in C++?..

Answer / kanak shah

there is vast differece between class and structure in c++
in my view class is class room and structure mean class
room structure.

Is This Answer Correct ?    3 Yes 28 No

Post New Answer

More OOPS Interview Questions

What does and I oop mean?

0 Answers  


WHAT'S THE OOPS BASIC OOPS CONCEPTS IN DOTNET

1 Answers  


how to write a java program for an output ****0 ***01 **012 *0123 01234

1 Answers  


Why do while loop is used?

0 Answers  


What does and I oop mean in text?

0 Answers  


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

0 Answers   IBM,


What do you mean by stack program? Get me an example stack program?

4 Answers  


what is data abstraction with example.

1 Answers  


1. Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)

1 Answers   Nagarro,


What is the difference between declaration and definition?

20 Answers   IBS,


How do you define a class in oop?

0 Answers  


What are classes oop?

0 Answers  


Categories