Re: Encapsulation Programming Software Development by oz_engineer Encapsulation is the hiding of information in order to ensure that data structures and operators are used as intended and to make the usage model more obvious to the developer: [url]http://en.wikipedia.org/wiki/C%2B%2B[/url] Re: Encapsulation Programming Software Development by Banfa … in the below code. Then what is the significance of encapsulation in OOPS concept. I am not getting the appropiate answer… than altering 2 methods. Getters/setters do the job of encapsulation which is to reduce code complexity, reduce the cost of… Re: Encapsulation Programming Software Development by Banfa … getter/setter with having direct uncontrolled access. The job of encapsulation is not to stop the outside world from accessing values… values it needs to control the class. The purpose of encapsulation is to prevent uncontrolled access which could lead to the… Re: Encapsulation Programming Software Development by oz_engineer If you want to take encapsulation for a spin, try and encapsulate a C++ program that does not use classes and all data structures can be accessed by the program. There is a lot of legacy code out there that needs encapsulation. Encapsulation Programming Software Development by jerryjerry … in the below code. Then what is the significance of encapsulation in OOPS concept. I am not getting the appropiate answer… Re: Encapsulation Programming Software Development by jerryjerry … there is advantage of getter-setter methods but according to encapsulation the private member variables of class can not be accessed… Encapsulation c++ Programming Software Development by namratag why encapsulation voilate at the binary representation of any source code? Re: Similarity Between Abstraction and encapsulation? Programming Software Development by tkud Encapsulation is wrapping data into single unit (e.g A class) Abstraction is hiding unessential parts and showing only essential data. Re: Encapsulation Programming Software Development by tintin.iitk The differences I think are in that, with data-members declared public, the user(the code which instantiates/uses this class) has to totally manipulate the data-members by itself.. e.g. [CODE] class Rect { public: int w, h; int area; }; [/CODE] In above code, if user wants to know the area, he has to keep setting and manipulating the members by … Re: Encapsulation Programming Software Development by Fbody Private members (whether they be member variables/properties or member functions/methods) are only accessible by other members of the class that contains the private members. For example, class1's private members are only accessible by other members of class1, class2's members and main() are not allowed [B]direct[/B] access. To access the members… Re: Encapsulation Programming Software Development by jerryjerry Thank you all for reply. As far as I understood that private member variables can be accessed by its class only. But by getter setter methods they can be accessed under the control of designer. Re: Encapsulation Programming Software Development by Fbody Correct, getters and setters give you [B]indirect[/B] (as opposed to [B]direct[/B]) access to the private members. In providing this [B]indirect[/B] access, they give you the ability to control how the data is accessed and manipulated. This control helps protect the data's integrity/quality. Re: Encapsulation Question Programming Software Development by IsharaComix …, but unfortunately (and against primary intuition), that's not how encapsulation works in Java. See, when a member variable/method is… Re: Similarity Between Abstraction and encapsulation? Programming Software Development by Narue … is really doing. This is abstraction. [QUOTE]Encapsulation means binding the data members and methods together in…It's possible (and not entirely uncommon) to use encapsulation without any kind of data hiding: [code] struct …s not unique to either abstraction or encapsulation. Both abstraction and encapsulation can make use of data hiding, but… Data Abstraction and Data Encapsulation Programming Software Development by myk45 … as to what exactly the terms Data Abstraction and Data Encapsulation mean: This is what i read: [B]Data Abstraction[/B… the essential features without including implementation details. [B]Data Encapsulation:[/B]: Data encapsulation, also known as data hiding, is the mechanism whereby… Re: Data Abstraction and Data Encapsulation Programming Software Development by myk45 … do NOT show how a particular function is implemented. Data Encapsulation:we hide data from other classes. i have one more… is this called as? Is it still called as Data Encapsulation? (But we are not hiding data here) Re: what is encapsulation and abstraction? Programming Software Development by Narue …you ask. Most of the time you'll see encapsulation rolled up along with data hiding, which while appropriate…, is technically incorrect. My interpretation of encapsulation is strictly the bundling of data and behavior. In …(such as an object of a class), that's encapsulation. [B]Abstraction[/B] is the concept of stripping … Re: what is encapsulation and abstraction? Programming Software Development by mike_2000_17 …hiding as a likely consequence of encapsulation. In a similar sense that encapsulation is the bundling of data and…]what[/I] a dictionary object should do. While encapsulation is to bundle all the things necessary to get …information hiding is usually a part of the process of encapsulation, but not strictly necessary (although highly recommended, of … Re: Data Abstraction and Data Encapsulation Programming Software Development by rvk0106 Exactly in encapsulation access is restricted for the hidden data.Where as in abstraction no such rules exists......clearly abstraction is a process of hiding unnecessary implementation information from user.where as encapsulation is a process of hiding private implementation details from the public interface. solve a small encapsulation in C# Programming Software Development by polo_coins i want some encapsulation problem int num; num=int.parse(Console.Readline()); here i have a problem if user enter a string i get encapsulation how can i solve it in easiest way my friends told me some function of try() ..catch() but I don't understood it Thanks Sergey Re: Data Abstraction and Data Encapsulation Programming Software Development by mrnutty …; }; class Ellipse : Shape{ public: void draw()const{ API.drawEllipse(); } }; Data Encapsulation : class Info{ string name; int uniqueId; //.... public: string getName(){ return… Re: Data Abstraction and Data Encapsulation Programming Software Development by mrnutty >>Data Abstraction: we hide away the implementation details ie we do NOT show how a particular function is implemented Thats exactly what data encapsulation is. Data Abstraction means that we factor out common functions from a class and make a separate class thats abstract, so that the other classes can inherit form it. Similarity Between Abstraction and encapsulation? Programming Software Development by yashsaxena … means Giving only essential things and hiding unnecessary details. Encapsulation means binding the data members and methods together in a … Re: Similarity Between Abstraction and encapsulation? Programming Software Development by mike_2000_17 …, of course. But on a less formal basis, I see encapsulation and abstraction as sort of two sides of the same… and/or implementation details (like helper functions)). In a sense, encapsulation is asking yourself: What are the things the user shouldn… Re: what is encapsulation and abstraction? Programming Software Development by Narue …]>>[B]Most of the time you'll see encapsulation rolled up along with data hiding, which while appropriate, is…[/B] care to expand?[/QUOTE] People tend to think that encapsulation includes data hiding, when that's not the case. As…;appropriate" remark, I was referring to the meaning of encapsulation as a joke. ;) Use Object of Another Class Within Class Help Clarifying Encapsulation Programming by eel Currently writing a program for an OOP course on encapsulation. The program is required to instantiate **only one object in …()` is a member of class `bar` is this breaking the encapsulation rule of modifying another objects private members? Even if that… Re: solve a small encapsulation in C# Programming Software Development by polo_coins I want just to prevent of entering wrong data from user of my program I mean : int num; num="ssss"; this cause encapsulation and I want to prevent it If somebody can put some code here i will be glad to check it Thanks Sergey couple of questions about encapsulation Programming Software Development by mostuniquename … was wondering if somebody could clarify something for me about encapsulation, for example if you have 2 classes [code]class Music… Public variables = breaking encapsulation, BUT... Programming Software Development by petike … question. I know that I should (or must) respect the encapsulation rule (as one of the main three Java features) but… what is encapsulation and abstraction? Programming Software Development by janejackson87 Hi Can anyone explain what the meaning of encapsulation and abstraction in OOPs?