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...


explain defference between structure and class with example

Answers were Sorted based on User's Feedback



explain defference between structure and class with example..

Answer / maheshkumar eaga

In structure By default data members are public
In class By default data members are private

Is This Answer Correct ?    3 Yes 0 No

explain defference between structure and class with example..

Answer / padmas

The structure, data type available in C is defined as Class in C plus plus. Where the data member variables in structure are accessible by all functions, methods. In Class the data variables and methods are encapsulated in one class with explicit accessible feature as public or private to protect the data. the data can also be protected with protect feature which is not available in structure data type. the only difference is data protection.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

How oops is better than procedural?

0 Answers  


what is diff between .net 1.1 and .net 2.0

4 Answers  


How Do you Code Composition and Aggregation in C++ ?

3 Answers   IBM, NET,


What is operator overloading? Give Example

11 Answers   CTS, IBM, TCS,


WILL I GET A guaranteed JOB AFTER DOING bsc()IT) and GNIIT from an NIIT CENTRE??

21 Answers   Biocon, MIT, NIIT,


What are the 3 pillars of oop?

0 Answers  


me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise

1 Answers  


What is difference between data abstraction and encapsulation?

0 Answers  


What are the important components of cohesion?

0 Answers  


What does and I oop mean?

0 Answers  


what is new operator in c++

1 Answers  


Name a typical usage of polymorphism

3 Answers  


Categories