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?

Answer Posted / mohan

By default the members of struct are public.
By default the members of class are priavte.

When an object is created to a class, constructor will be
called automatically.
But not in struct (if structure having member function with
structure name)

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better struts or spring?

988


Write a c++ program to display pass and fail for three student using static member function

3326


officer say me - i am offered to a smoking , then what can you say

2044


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2260


How is polymorphism achieved?

1001


What is class encapsulation?

1030


How to improve object oriented design skills?

948


Why do we use encapsulation in oops?

971


What is abstraction example?

1042


How do you define social class?

1011


What are functions in oop?

997


What is difference between inheritance and polymorphism?

976


What is oops and why we use oops?

991


What does and I oop mean?

1104


Why is polymorphism needed?

1002