What is c# pronunciation?
C sharp
Which company is it belongs to?
Micro soft
What is speciality of csharp?
The first thing is it is object oriented language and it is also called as component oriented language. It combines the computing power of c++ with the programming ease of visual Basic. C# is designed to work with Microsoft .NET(pronounced as Dot Net)
What is object oriented programming?
Object oriented programming(oop) refers to a type of computer programming in which programming defines not only the data type of a data structure. but also the types operations (Functions also called as mehods) that can be applied to the data structure. so the data structure becomes an object that includes both data and functions . programmer can also create relationship between data and functions.
Class.
Object
Encapsulation
Abstraction
Inheritance.
Polymorphism
What is a class?
It is a collection of objects having similar properties are Attributes of an object .Events are the actions done by user on object.class ‘s data is represented by its fields and behavior is represented by its methods
Why we need to create objects?
Class is just a template .It can be also compared with blueprint of a building. We need to create objects using this template just as buildings arebbuilt by using blue print.
oops concepts
Applications written in c# requires the .NET framework to be installed to run the application.
C# does not offer global variables or function. Every think is wrapped in the classes.
Encapsulation:
Binding code and data together into a single unit is known as encapsulation. Take a television to watch the programs on tv users should only do the action like on, off or mute etc .But internal details of electricity circuit are hidden from the user. It is called encapsulation. That means end users should only call the methods to work with data. Data should not be directly handles from the end user.
Hiding internal details and focusing only essential functionality is known as abstraction .For example to create student class there may be many properties but we focus only on student no, sname, mark etc.
Inheritance:
When one object acquires all the properties and behaviors of parent objects is known as inheritance.
Inheritance is the mechanism by which one object requires some/all properties of another object.
Polymorphism:
1. Polymorphism means to process objects differently based on their type.
2. Multiple methods can have same name but which implementation to be used is decided at runtime depending upon the situation.
o.k oops concepts over. But note one thing c# is called as component oriented application .
what is component oriented language?
A software is divided in to no of component is developed and then joined. For example we know that there is a spell checker in Ms-word. It is a separate component developed separately and made to work with ms-word .In available languages c# is the best component oriented language.
-------will continue(Muthu karthikeyan,madurai)
contact :91 96293 29142
No comments:
Post a Comment