Awt Assignment Tutorial 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

AWT ASSIGNMENT TUTORIAL 1

JALADHI SONAGARA
1991106
6TH SEM
1> Enlist and explain Types of assemblies in .net framework.
NET assemblies contain the definition of types, versioning information for the
type, meta-data, and manifest.
.NET supports three kinds of assemblies:
private
shared
satellite
Private Assembly
Private assembly requires us to copy separately in all application folders where we
want to use that assembly’s functionalities; without copying, we cannot access the
private assembly features and power. Private assembly means every time we have
one, we exclusively copy into the BIN folder of each application folder.
Public Assembly (Shared Assembly)
Public assembly is not required to copy separately into all application folders.
Public assembly is also called Shared Assembly. Only one copy is required in
system level, there is no need to copy the assembly into the application folder.
Satellite Assembly
Satellite assemblies are used for deploying language and culture-specific resources
for an application.

Compare class, Abstract class &interfaces.


Write a Program to implement constructor in Multiple and Hybrid inheritance
using Interfaces.

using System;
namespace InterfacePractice
{
interface InterTrial
{
void inter();
}
interface inter2:InterTrial
{
new void inter();
}
public class c2 : InterTrial
{
int x;
public c2(int X)
{
Console.WriteLine("X = " + X);
}
public void inter()
{
Console.WriteLine("Inter");
}
}
class Class1 : c2, inter2
{
int y;
public Class1(int x,int y):base(x)
{
this.y = y;
Console.WriteLine("Y = " + y);
}
public new void inter()
{
Console.WriteLine("Inter1q");
}
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Class1 c1 = new Class1(2,3);
c1.inter();
InterTrial i1 = c1;
i1.inter();
inter2 i2 = c1;
i2.inter();
i2.inter();
}
}
}'

You might also like