Object oriented programming concepts-Session 11
Object oriented programming concepts-Session 11
nl
O
se
U
tre
en
Session: 11 C
h
ec
O
List examples of Frameworks
se
Explain Microsoft .NET framework and Java AWT API
U
tre
List Advantages and Disadvantages of Framework
en
Explain Reflection
List examples of Reflection C
h
Explain Java and C# Reflection API
ec
rA
Fo
se
U
tre
en
C
h
ec
Basic Structure
pt
rA
Fo
nl
O
se
Framework
U
tre
en
C
h
ec
pt
rA
Fo
O
components or classes that form the basis of an
se
application.
U
tre
The two broad categories of methods in a class are:
en
Foundation Methods
Specialization Methods C
h
ec
pt
Fo
O
applications
se
U
The .NET framework
tre
stack is shown in the
en
figure.
C
h
ec
pt
rA
Fo
nl
compatible Visual Studio versions.
O
.NET Version Release Visual Studio Version Windows Default
se
Year
U
1.0 2002 Visual Studio.NET Windows XP Tablet and Media
Center Editions
tre
1.1 2003 Visual Studio 2003 Windows Server 2003
en
2.0 2005 Visual Studio 2005 Windows Server 2003 R2
3.0 2006 -
C Windows Vista, Windows
h
Server 2008
ec
2008 R2
rA
O
3.5, and 4.0 consist of new libraries such as:
se
U
tre
en
C
h
ec
pt
rA
Fo
O
se
The class
U
hierarchy of
tre
AWT is shown
en
in the figure.
C
h
ec
pt
rA
Fo
O
screen with which the user can interact.
se
U
A Container is a special type of component that can
tre
en
C
h
ec
pt
rA
Fo
O
display area of an application based on the type of
se
layout selected by the user.
U
tre
The hierarchy of the LayoutManager is shown in the
en
figure.
C
h
ec
pt
rA
Fo
O
to handle the actions done by users on these
se
components.
U
tre
The listener hierarchy is shown in the figure.
en
C
h
ec
pt
rA
Fo
O
se
The figure shows the mirror image or reflection of a
U
tre
en
C
h
ec
pt
rA
Fo
se
code to retrieve information
U
regarding the fields,
tre
methods, constructors, and
en
other members of the class
C
and use that information to
h
ec
O
metadata for the purpose of finding modules,
se
assemblies, and type information at runtime.
U
tre
C# provides the ‘System.Reflection’ namespace and
en
Java provides the ‘java.lang.reflect’ package for
C
implementing reflection in the program.
h
ec
pt
rA
Fo
O
or classes that form the basis of an application.
se
Foundation methods are one that become a part of a
U
child class through inheritance but are not overridden
tre
in the child class.
en
Specialization methods are declared in the parent but
C
implemented in the child, that is, they are overridden
h
in the child class.
ec
pt
O
Toolkit (AWT) which is a collection of a number of
se
common graphical components used for designing the
U
GUI of a Java application.
tre
Reflection is the ability of a program to ‘examine’ or
en
‘introspect’ itself.
C
C# provides the ‘System.Reflection’ namespace and
h
Java provides the ‘java.lang.reflect’ package for
ec