Professional Documents
Culture Documents
Review Quiz
1. public interface IPaint:Ifigure
{ void Paint();}
View the problem statement and answer the following
question.
What is the fully qualified name of the Paint method?
1) IFigure.Paint
2) IPaint.Paint
3) void Paint
4) IFigure.IPaint.Paint
1) frmEmployee.MDIParent = frmOrganization;
2) frmEmployee.MDIFormName = frmOrganization;
3) frmOrganization = DIContainer.add(frmEmployee);
4) frmEmployee.ParentForm = frmOrganization;
Objectives
In this lesson, you will learn to:
Write and execute a basic C# program
Write a program with variables and statements
Create methods with parameters
Create classes and namespaces
Specify attributes for an object
Create user-defined data types
Implement interfaces
Create WinForms
Objectives (Contd.)
Handle events, delegates and exceptions
Handle files
Access a database
Implement Interfaces
Overview of Interfaces
An interface provides a set of functionality for a
program
Classes and structs implement an interface
An interface member can be referred to by using
its fully qualified name in a class
Create WinForms
Creating forms and adding controls to the form
Create the following by using the WinForms
namespace
Windows Forms
Buttons
Text Boxes
Labels
Handle Files
Accessing files
Input and output operations are performed on files
by using streams
Streams are used for two types of file access,
random and sequential
The FileStream class is used to access files for
read and write operations
Access a Database
Connecting to a database
ADO.NET provides data access functionality to
communicate with data sources, such as Microsoft
SQL Server 2000
ADO.NET is independent of data sources
ADO.NET provides better performance than ADO
ADO.NET consists of DataSet and managed
provider