Visual Programming Fall 2012 – FUUAST Instructor: Muhammad Farhan Marks Distribution Four Quizzes (Three Best) 20 Assignments (Three) 15 Project 20 Attendance 5 Final Examination 40 Total Marks 100 Course Outline • Introduction • Development environment • User Interface, controls -Properties and events • Windows Form – Introduction – Designing • C# language – Basics – Program flow • Debugging • File handling Course Outline • Database – Introduction – Creating • ADO.NET – – – – – – Introduction Connections Commands DataReaders and Connected Access Data Sets and Disconnected Access Data binding (insert, update, delete, view) Introduce yourself • Name • Area of Interest • Your expectations from this course What will we do today • The Different Kinds of Computer Programming Languages - Procedural and Non-procedural Programming Languages - Object-Oriented Programming Languages Introduction • Computer Programming The process of developing and implementing various sets of instructions to enable a computer to do a certain task. These instructions are considered computer programs and help the computer to operate smoothly. Introduction • Procedural Programming Language In Languages where programs are organized into blocks of code called variously "subroutines", "functions", or "procedures", each of which handles one particular task. Procedural programming languages include C, C++, Fortran, Pascal, and Basic. • Non- Procedural Programming Language Non-Procedural language that does not support "subroutines", "functions", or "procedures" Procedural programming languages include Assembly language, Prolog. Introduction • Object-Oriented Programming(OOP) Stands for "Object-Oriented Programming" OOP refers to a programming methodology based on objects, instead of just functions and procedures. These objects are organized into classes, which allow individual objects to be group together. Most modern programming languages including C#, VB.Net, Java ,C++ and PHP etc. Introduction • Object An object can be considered a "thing" that can perform a set of related activities. The set of activities that the object performs defines the object's behavior. For example: Student (object) can give the name or address. • Class A class is simply a representation of a type of object. Class is composed of three things: Name, Attributes, and Operations. public class Student {} Introduction • Encapsulation • Inheritance • Polymorphism Introduction • Encapsulation (or information hiding) In Object Oriented Programming, encapsulation is an attribute of object design. It means that all of the object's data is contained and hidden in the object and access to it restricted to members of that class. Introduction • Inheritance – Important concept in object-oriented programming, it provides a way for objects to define relationships with each other. – Ability of a new class to be created, from an existing class by extending it, is called inheritance. public class Exception {} public class IOException : Exception {} Introduction • Polymorphism – Polymorphism is a generic term that means 'many shapes'. More precisely Polymorphisms mean the ability to request that the same operations be performed by a wide range of different types of things. – Polymorphism is achieved by using many different techniques named method overloading, operator overloading and method overriding.