Skip to main content

Posts

What is C# ?

C# is pronounced as "C-Sharp". It is an object-oriented programming language provided by Microsoft that runs on .Net Framework. We can develop different types of Window and Web applications by the help of C# programming language. C# is designed for CLI (Common Language Infrastructure). CLI is a specification that describes executable code and runtime environment. C# is approved as a standard by ECMA and ISO.

What is Class and Object in C#

A class is like a blueprint of specific object. In the real world, every object has some kinds of data and functionalities. For example, the iPhone . iPhone is an object of the Smartphone type. The Smartphone is a class that specify certain characteristic like  Display size,Color ,Weight, Thickness etc. So any company that makes a Smartphone that meet those requirements is an object of the Smartphone type. For example, every single Smartphone of Apple, Samsung, BlackBerry are an object of the class called 'Smartphone'. Here, 'Smartphone' is a class and every single physical Smartphone is an object of the Smartphone class. Likewise, in object oriented programming, a class defines certain properties, fields, events, method etc. A class defines the kinds of data and the functionality their objects will have. A class enables you to create your own custom types by grouping together variables of other types, methods and events. In C#, a class can be defined by using t...

What are the features of Object Oriented Programming features ? OOP features

Object Oriented Programming (OOP) has the following important features. Class     A Class is a blueprint (plan or template) of an object that contains variables for storing data and functions to perform operations on the data. Object     Object is an instance of a class and basic run-time entities of an object oriented system. They may represent a person, a place or any item that the program must handle. Abstraction     Abstraction is "To represent the essential feature without representing the background details." Abstraction is the process of hiding the working style of an object, and showing the information of an object in an understandable manner. Encapsulation     Wrapping up a data member and a method together into a single unit (class) is called Encapsulation. Encapsulation means hiding the internal details of an object, in other words how an object does something. Encapsulation is a technique used to protect ...

What is object-oriented programming (OOP)?

    Object-oriented programming (OOP) is a programming language model where programs are organized around objects rather than action and logic. Modern programming languages including Java , C# and PHP , are object-oriented languages. An "object" in an OOP language refers to a specific type, or "instance," of a class.Each object has a structure similar to other objects in the class, but can be assigned individual characteristics. An object can also call functions, or methods, specific to that object.  For example, the source code of a game may include a class that defines the structure of characters in the game. Individual characters may be defined as objects, which allows them to have different skills and abilities. They may also perform different tasks in the game, which are run using each object's specific methods. Object-oriented programming makes it easier for programmers to structure and organize software programs. Because individual objects can...