Thursday, March 28, 2024 22:27

Posts Tagged ‘object oriented programming’

Generic classes

Sunday, June 18th, 2017

Generic classes, also known as generic data types or simply generics, are classes of unknown type until they are instantiated to some specific type.

Because this concept is a bit harder to explain, I will first exemplify a specific case that will help you better understand it.… Read more

Nested classes

Friday, June 9th, 2017

C# offers nested classes, which just like all the other nested programming concepts, implies a construct (class) defined inside the body of another construct (class). The class defined this way is called “inner class”, while the one which contains it, is called “outer class”.… Read more

Static members

Thursday, May 18th, 2017

As we saw in the previous recent lessons, the usual way of communicating with a class is to create instances (copies) of it, and then use the resulting objects. In fact, that is the strong advantage of the classes – the ability to create copies that can be used and can be modified individually.… Read more

Access modifiers

Sunday, May 14th, 2017

As their name suggests, access modifiers are some programming concepts that can alter the access level of something. In more complex words, access modifiers are reserved keywords which add information for the compiler, and the piece of code related to those modifiers.… Read more

Instantiation

Wednesday, April 26th, 2017

I have explained a few times already that when we are dealing with objects, most of the times we are not working with the original class itself – the blueprint, but we are actually create copies of it called instances.… Read more

Properties

Sunday, April 23rd, 2017

In today’s lesson, I will talk about one of the previous lesson’s new concepts. The first subject on the list: fields and properties. According to our beloved MSDN, a property is a member that provides a flexible mechanism to read, write, or compute the value of a private field.… Read more

Classes

Saturday, April 22nd, 2017

At a definition level, classes are objects defined by the keyword class, followed by an identifier (name) and a body (code block), which contains the codes that define the object and its behavior.

Most of the times, classes can contain only four kind of elements:

  • Fields – member variables of a certain type, defined at class level
  • Properties – a special kind of programming constructs which helps us manipulate the fields, and set the properties of the object
  • Methods – they implement the functionality of the object.
Read more

Object oriented programming

Saturday, April 22nd, 2017

Object oriented programming (OOP) is a programming paradigm, which uses objects and their interactions for building computer programs.

Through this concept, programming tries to simulate the real world. In real world, we can have objects like a car, an orange, a dog.… Read more


Follow the white rabbit