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 Struct?

Answers were Sorted based on User's Feedback



What is the Difference between Class and Struct?..

Answer / manju

The only difference between class and struct is that

in class all members are private by default whereas in

struct the members are by default public.

Is This Answer Correct ?    11 Yes 0 No

What is the Difference between Class and Struct?..

Answer / ashish srivastava

by default
struct elements are public
while
class elements are private

Is This Answer Correct ?    8 Yes 0 No

What is the Difference between Class and Struct?..

Answer / satvir kaur

STRUCTURE CLASS
1.structure by default is 1. class by default is private
public.
2.structure does not 2.class provide data hiding.
provide data hiding.
3.A structure would be the 3.class would be the collection
collection of related data. of data & code which handels
data.


CAN U TELL ME MORE DIFFERENCE BETWEEN LIKE THIS PLZ TELL ME
AS EARLY AS POSSIBLE I AM WAITING

Is This Answer Correct ?    8 Yes 0 No

What is the Difference between Class and Struct?..

Answer / wfwre

Class elements are accessed using the provided methods.

Is This Answer Correct ?    7 Yes 0 No

What is the Difference between Class and Struct?..

Answer / vishnupriya

1.the variables of struct r jus varialbles inly,whereas it
it objects for class...

2. pointers can be used in structure only for same return
types,but in classes it can be uses for diff classes

Is This Answer Correct ?    2 Yes 0 No

What is the Difference between Class and Struct?..

Answer / purna

answer 3 is wrong.
answer 4 is absolutely corret.

Is This Answer Correct ?    3 Yes 1 No

What is the Difference between Class and Struct?..

Answer / sureshreddy

the diff b/w structure and class is class by deafualt
private, where as structure by default public.

Is This Answer Correct ?    2 Yes 1 No

What is the Difference between Class and Struct?..

Answer / talib hassan

1.Structure cannot provide the re usability but class provide the re usability of code.
2. All the members of structure are public but a class provide the several types of accessing methods.
3. structure cannot support polymorphism concept but class provide polymorphism.

Is This Answer Correct ?    0 Yes 0 No

What is the Difference between Class and Struct?..

Answer / revathy

no functions in structures
member functions are available in class

Is This Answer Correct ?    4 Yes 5 No

What is the Difference between Class and Struct?..

Answer / santhosh.r

Structs allocates continues memory
where as class does not
structs and functions are the basic idea behind class

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is

4 Answers   TCS,


64/square(4)

1 Answers  


How are Structure passing and returning implemented by the complier?

0 Answers   TISL,


how to create c progarm without void main()?

1 Answers   NIIT,


How to write a program to receive an integer & find its octal equivalent by using for loop?

1 Answers   Google,


What is printf () in c?

0 Answers  


What are the similarities between c and c++?

0 Answers  


What is the advantage of c?

0 Answers  


How many levels deep can include files be nested?

0 Answers  


write a c/c++ programthat connects to a MYSQL server and checks if the INNoDB plug in is installed on it.If so your program should print the total number of disk writes by MYSQL.

0 Answers   BirlaSoft,


difference between malloc and calloc

3 Answers   HCL, Wipro,


Write a program to reverse a given number in c language?

0 Answers  


Categories