813 views
1 votes
1 votes
Can someone explain the difference between abstraction and encapsulation with programming example?

1 Answer

0 votes
0 votes

Related questions

0 votes
0 votes
1 answer
1
iarnav asked May 27, 2017
305 views
When are C++ copy constructors, assignment operators, and destructors, respectively,invoked?
0 votes
0 votes
2 answers
2
logan1x asked May 19, 2019
697 views
A default catch block catches,[A]. all thrown objects[B]. no thrown objects[C]. any thrown object that has not been caught by an earlier catch block[D]. all thrown object...
0 votes
0 votes
1 answer
3
LavTheRawkstar asked Jun 29, 2016
961 views
What is the output of the following code segment ?Boolean b= false ;if (b = true)System.out.println("true");elseSystem.out.println("false");(A) true(B) false(C) compiler ...
0 votes
0 votes
0 answers
4
LavTheRawkstar asked Jun 29, 2016
388 views
class Value { public static void main(String [] s ) { int i = 255;byte b=(byte)i ;char c = (char)b;System.out.println("int value of char : " + (int) c);} }