After studying this book till section fourteen, at this point we are able to set a simple program using C#. The readers have to observe that we write numerous programs through which we use a structure feels like class. After that we manufactured a function called main because class. The students name is based on the name of the project. Why is it and so? We need to learn about the composition of C#. Basically C# is an object oriented dialect. Now a new question looks that precisely what is object oriented means? Are these claims another lingo on which C# rely or C# is a derived vocabulary from OOP (object focused programming)? The solution is that OOP is not only a language it’s technique and C# is actually a programming terminology which use this method. In this part we will certainly discuss about the OOP and its basic concepts.
OOP (Object oriented programming) is a very vide concept of coding. In this publication we are using C# because programming dialect. That is why you need to know about OOP. OOP is actually a technique that how to program. It is effective as compared to organized approach. It is easy to find bugs and problems if we are utilizing oop. But in structure way it becomes hard for a developer. In composition approach when there is an error occur, the only developer of that code can find the error or perhaps bug and fix it very easily, if they will try to solve the error without the designer of that task then it costs much. However in oop this kind of strictness removed. Oop is usually economical this way as compared to structured approach. OOP is a technique totally based on classes and objects.
Object Oriented Basic Principle:
There are some basic concepts of object focused programming that features classes, objects, association, composition, aggregation as well as the main 4 pillars of OOP that happen to be as follows:
The facts of this chapter will be supplied in the incredibly next chapter No . 16.
Polymorphism: It is clear from its term polymorphism that something is heading same. This give us the facility to produce the multiple functions with same name but several parameters rendering the different result. A real universe example is known as a family while using same surname. This will always be explained later in section No . 18.
Defining the classes and objects:
Classes and objects:
Classes are thought as the user defined data types. They describe the types of objects. Sometimes both of these terms are being used correspondently. But in actual subject is an instance of the course. If we take the sketching and painting example then the course is only a sketch plus the object is actually a colorful art work of that drawing. If we employ construction approach then category is just a green print and the object can be fully well prepared building from that blueprint.
Basically, the classes and objects, idea of OOP offers the easiness in coding or developing environment facilitating the coders while using following features:
- Reusability
- Reliability
- Responsiveness
- Error free coding
- Encapsulation
- Abstraction
- Data hiding
- Info binding
- Solid security
- Inheritance
- Polymorphism
- Relationship
- Aggregation
- Structure and much more.