Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


ramesh kondeti
encapsulation
1 Answer(s)      3 years and 5 months ago
Posted in : Java Beginners


how encapsulation is achieved? if i write private variables in my source code, it will achieve encapsulation. this statement is true in all cases....


Advertisement
View Answers

February 17, 2011 at 3:33 PM


Encapsulation is achieved by declaring variables as Private in a class- this gives access to data to only member functions of the class. A next level of accessibility is provided by the Protected keyword which gives the derived classes the access to the member variables of the base class- a variable declared as Protected can at most be accessed by the derived classes of the class.



Related Tutorials/Questions & Answers:
encapsulation
encapsulation   how encapsulation is achieved? if i write private variables in my source code, it will achieve encapsulation. this statement is true in all cases
encapsulation vs abstraction
encapsulation vs abstraction  what is the difference between encapsulation and abstraction
Advertisements
Encapsulation in Java
Encapsulation in Java Encapsulation is one of the important feature of object... in to a single unit is called Encapsulation. It means hiding the data and function from the  outside world. Encapsulation can be achieved by making the member
Encapsulation & Abstraction - Java Interview Questions
Encapsulation & Abstraction  What is the difference between Encapsulation and Abstraction
Encapsulation & Abstraction - Java Interview Questions
Encapsulation & Abstraction  What is the difference between Encapsulation and Abstraction
Encapsulation versus Absraction
Encapsulation versus Absraction  I believe no one in this world knows real difference between Encapsulation and Abstraction , one of them is me as well but if there is anyone who really understand the difference please help me
diff between encapsulation and abstraction code
diff between encapsulation and abstraction code  diff between encapsulation and abstraction code
Reg:Encapsulation - Java Interview Questions
Reg:Encapsulation  where we use encapsulation in programs? how we know that is encapsulated?  Hi Friend, Encapsulation is a process... have to use the encapsulation feature.It hide the details by making the fields
Encapsulation in Java 7
Encapsulation in Java 7 This tutorial describe concept of  Encapsulation. It is one of OOPs concept. Encapsulation : Encapsulation is a way of wrapping up data and methods into a single unit. Encapsulation puts the data safe from
Encapsulation VS Abstraction - Java Beginners
Encapsulation VS Abstraction  Real Time sample code for Encapsulation... private.  Hi Friend, Encapsulation-Encapsulation is a process... to think about encapsulation is as a protective wrapper that prevents code and data
diff between encapsulation and abstraction code with output
diff between encapsulation and abstraction code with output   diff between encapsulation and abstraction code with output
diff between encapsulation and abstraction code with output
diff between encapsulation and abstraction code with output   diff between encapsulation and abstraction code with output
diff between encapsulation and abstraction code with output
diff between encapsulation and abstraction code with output   diff between encapsulation and abstraction code with output
Encapsulation in Java
Encapsulation along with Inheritance, Polymorphism, and Abstraction are the four concepts of Object Oriented Programming (OOPs). Encapsulation in Java... and provides access to them by public methods. Encapsulation is a type of data
Java Encapsulation Example
Java Encapsulation Example In this section we will read about how to achieve the Encapsulation, feature of OOPs, in Java. Encapsulation is one of the concept of OOPs. Encapsulation is mechanism for hiding informations. This mechanism
Difference between Encapsulation and Abstraction in Java
In this section we will discuss about the difference between Encapsulation and Abstraction in Java. Encapsulation is a process of hiding all the data.... Encapsulation in Java is represented using  private, package-private
Encapsulation
Encapsulation       OOPs revolve around the four concepts: 1. Encapsulation 2. Polymorphism 3.... Here we will discuss Encapsulation briefly: -- Encapsulation is an important
Factory Pattern
is good since it encourages Encapsulation and Delegation. A class may need
Addition of two Number in Class
in which uses of class consists of a collection of type of encapsulation instance
java
java  Im asking for simple java program with encapsulation pls
oops concepts
oops concepts  What is polymorphism?Explain with an example. What is abstraction?Explain with an example. What is inheritance?Explain with an example. What is encapsulation?Explain with an example
java - Java Beginners
java   Can you provide me the example program which uses all the concepts like encapsulation ,inheritance ,polymorphism in a single program
pls help me with this question
pls help me with this question  how to write a program in C++ using encapsulation,polymorphism,inheritance and abstraction?(all these concepts should come in a single program
Core Java - Java Beginners
Core Java  Can u give real life and real time examples of abstraction, Encapsulation,Polymarphism....?  I guess you are new to java and new to roseindia as well.. anyways given is the encapsulation example http
corejava - Java Beginners
of Encapsulation in java? I'm a core Java beginner.  Hi,Here is the description of Encapsulation in java:Encapsulation is a process of binding... encapsulation is as a protective wrapper that prevents code and data from being
java bits 7 - Java Interview Questions
encapsulation. D. The cardlD and limit variables break polymorphism. E. The setCardlnformation method breaks encapsulation
Oops Definition - Java Beginners
Oops Definition  What is Abstraction and Encapsulation? What is the Difference Between Abstraction and Encapsulation? Regards M.KethraBalan....). Encapsulation - This is an important programming concept that assists in separating
java - Java Beginners
java  pl. let me know few progrograms on encapsulation. thanks... int displayVolume() {return (length*width*height);} } class Encapsulation...(); System.out.println("Volume is : " + vol); } } Encapsulation
java
java  purpose of encapsulation?   The basic purpose of encapsulation is SECURITY. You won't want anyone to steal into your pages or your programs easily by using java. When you declare an instance variable(I hope you
java basics
java basics  What are Encapsulation, Inheritance and Polymorphism?  Encapsulation - Hiding the implementation details of a Class. Once a class is Encapsulated then we Cannot directly access that class
Object-Oriented Design - Overview
Java: Object-Oriented Design - Overview Encapsulation Article GetterEradicator It's a nice article about Encapsulation by Martin Fowler. Fowler is one of leading authors in the design area. His (with Kent Beck and other coauthors
arraylist
Duplicates from ArryaList   Encapsulation And Abstraction   
OOPs concepts in Java
Object Inheritance Encapsulation Abstraction Polymorphism Class: Class... object at a time. Abstract deals with interface. Encapsulation: Encapsulation means wrapping up data and behavior of an object in a class. Encapsulation also
CAP - Code Analysis Plugin
in your architektur, will help to improve the encapsulation. As a result your
Abstraction In Java for Java beginners
. Abstraction is one of the 5 fundamentals of OOPS: Abstraction Encapsulation
Object-Oriented Language: Java / APIs, Java OOPs
oriented concepts are: Encapsulation Inheritance Polymorphism
Java7 : OOPs Concepts
following concepts: Abstraction Encapsulation Inheritance Polymorphism... and show only essential features. Encapsulation: Encapsulation is a way
inherittance
inherittance  Develop a class Borrower which has 5 important fileds, namely borrowerId, borrowerName, borrowerLastName, contactNumber and dateOfBirth. Your class must demonstrate good encapsulation where all fileds get
java - Java Interview Questions
? What are Encapsulation, Inheritance and Polymorphism? n many which i guess is lot
constructors - Java Beginners
would erode the encapsulation abilities of the language. class
java
, same goes for the rest.It must define polymophysm and have encapsulation. Pls
java
encapsulation. Pls friends. Thank you.  Hi, Are you looking for SWING
Object Oriented Programming in Java
); } } Encapsulation: Encapsulation is the ability to bind the property and method of the object and also operate them. Encapsulation helps in hiding... of encapsulation: class Check{ private int amount=0; public int getAmount
Polymorphism
Polymorphism        OOPs revolve around the four concepts: 1. Encapsulation 2. Polymorphism 3. Abstraction 4. Inheritance In OOPs, these concepts are implemented through
PHP Mutator Accessor
PHP Mutator and Accessor Methods: In object-oriented programming, the mutator method (also called "setter") is used to initialize the member variables of a class. According to the encapsulation principle the variables
ejb - EJB
. Encapsulation of environmental dependencies EJB 3.0 now uses the annotations and dependency injection mechanism to encapsulation the environmental
What Is OOPS In Java
concepts such as, Inheritance, Polymorphism, Encapsulation, Abstraction, etc... polymorphism.   Encapsulation : Encapsulation is the feature of OOPs
hai
hai  bring out the oop features in java with examples?   Java OOPS Features   Encapsulation Example: public class Box { private int length; private int width; private int height; public void setLength(int p
Creational Design Pattern
Encapsulation and Delegation. A class may need it?s subclasses to specify the objects
Advertisements
 

 

 

DMCA.com