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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a progarm to find the length of string using switch case?

2026


Explain how do you generate random numbers in c?

1043


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1955


Why do we need volatile in c?

1118


Who developed c language and when?

1009


what is the different bitween abap and abap-hr?

2217


What are qualifiers and modifiers c?

940


Define and explain about ! Operator?

953


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1217


the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....

23595


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3457


What is a void * in c?

1021


Explain what are its uses in c programming?

1015


What is difference between union and structure in c?

1070


What do you mean by dynamic memory allocation in c? What functions are used?

1107