PROMOTE MY BLOG: JUST CLICK BELOW BUTTON

Search Any Paper On This Blog

Tuesday, January 24, 2012

Re: ::: vuaskari.com ::: CS610 GDB solution



On Tue, Jan 24, 2012 at 7:30 PM, mc110402056 Nadia Batool <mc110402056@vu.edu.pk> wrote:
kindly send the solution of the cs201


On 1/24/12, Irsa Rana <mc100403939@vu.edu.pk> wrote:
>
>
> --
> We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish
> you all the best. Join www.vuaskari.com,
> To post to this group, send email to vuaskari_com@googlegroups.com
> Visit these groups:
> This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
> MIT/MCS Group:   http://groups.google.com/group/vu_askarimit?hl=en?hl=en
> HRM Group:         http://groups.google.com/group/askari_hrm?hl=en?hl=en
> Banking Group:    http://groups.google.com/group/askari_banking?hl=en?hl=en
> Management:       https://groups.google.com/group/vuaskari_mgt?hl=en
> Marketing:           https://groups.google.com/group/vuaskari_mkt?hl=en
> MIS Group:          http://groups.google.com/group/askari_mis?hl=en
>

--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS
Group:   http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group:         http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group:    http://groups.google.com/group/askari_banking?hl=en?hl=en
Management:       https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing:           https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group:          http://groups.google.com/group/askari_mis?hl=en
 
 
 
lo moj maro sabi
03212152021
PGJR01 GOJRA campus

It is possible to define a class within another class; such classes are known as nested classes. The scope of a nested class is bounded by the scope of its enclosing class. Thus, if class B is defined within class A, then B is known to A, but not outside of A. A nested class has access to the members, including private members, of the class in which it is nested. However, the enclosing class does not have access to the members of the nested class.

            There are two types of nested classes: static and non-static. A static nested class is one which has the static modifier applied. Because it is static modifier applied. Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used.

            The most important type of nested class is the inner class is the inner class. An inner class is a non-static nested class. It has access to al of the variables and methods of its outer class and may refer to them directly in the same way that other non-static members of the outer class do. Thus, an inner class is fully within the scope of its enclosing class.

            The following program illustrates how to define and use an inner class. The class named Outer has one instance variable named outer_x, one instance method named test(), and defines one inner class called Inner.

class Outer {

     int outer_x = 100;

void test() {

     Inner inner = new Inner();

     inner.display();

}

class Inner {

     void display() {

          System.out.println("display : outer_x =" + outer_x);

          }

     }

}

class InnerClassDemo {

     public static void main(String args[]) {

          Outer outer = new Outer();

          outer.test();

     }

}

 


--
M.Waqas 03212152021
waqasijaz007@yahoo.com

--
We say, "Be one as Pakistani Nation and grow up for Pakistan's Future". Wish you all the best. Join www.vuaskari.com,
To post to this group, send email to vuaskari_com@googlegroups.com
Visit these groups:
This (Main) Group:http://groups.google.com/group/vuaskari_com?hl=en?hl=en
MIT/MCS Group: http://groups.google.com/group/vu_askarimit?hl=en?hl=en
HRM Group: http://groups.google.com/group/askari_hrm?hl=en?hl=en
Banking Group: http://groups.google.com/group/askari_banking?hl=en?hl=en
Management: https://groups.google.com/group/vuaskari_mgt?hl=en
Marketing: https://groups.google.com/group/vuaskari_mkt?hl=en
MIS Group: http://groups.google.com/group/askari_mis?hl=en

No comments:

Post a Comment

PLEASE COMMENT ABOUT YOUR VISIT AND MY SITE

Note: Only a member of this blog may post a comment.