Book Image

Learn C# in 7 days

By : Gaurav Aroraa
1 (1)
Book Image

Learn C# in 7 days

1 (1)
By: Gaurav Aroraa

Overview of this book

This book takes a unique approach to teach C# to absolute beginners. You’ll learn the basics of the language in seven days. It takes a practical approach to explain the important concepts that build the foundation of the C# programming language. The book begins by teaching you the basic fundamentals using real-world practical examples and gets you acquainted with C# programming. We cover some important features and nuances of the language in a hands-on way, helping you grasp the concepts in a fluid manner. Later, you’ll explore the concepts of Object-Oriented Programming (OOP) through a real-world example. Then we dive into advanced-level concepts such as generics and collections, and you’ll get acquainted with objects and LINQ. Towards the end, you’ll build an application that covers all the concepts explained in the book. By the end of this book, you will have next-level skills and a good knowledge of the fundamentals of C#.
Table of Contents (15 chapters)
Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Introduction to OOP


OOP is one of the programming paradigms that is purely based on objects. These objects contain data (please refer to day seven for more details).

Note

When we do the classification of programming languages it is called programming paradigm. For more information refer to https://en.wikipedia.org/wiki/Programming_paradigm.

OOP has come into consideration to overcome the limitations of earlier programming approaches (consider the procedural language approach).

Generally, I define OOP as follows:

A modern programming language in which we use objects as building blocks to develop applications.

There are a lot of examples of objects in our surroundings and in the real world, we have various aspects that are the representation of objects. Let us go back to our programming world and think about a program that is defined as follows:

A program is a list of instructions that instructs the language compiler on what to do.

To understand OOP more closely, we should know about earlier programming...