{
private int empid;
{
empid = x;
name = y;
} public void show ()
{
}} class Encap
{
{
Emp e1 = new Emp (eid, ename);
e1.show ();
}}
Java program that implements the Concept of Encapsulation
Reviewed by
on
September 05, 2019
Rating:
No comments: