Posts Tagged ‘OOP’
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
Tags: class, inner class, nested classes, object oriented programming, objects, OOP
Posted in Objects | No Comments »
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
Tags: instantiation, object oriented programming, objects, OOP, singleton, static members
Posted in Objects | No Comments »
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
Tags: class, instantiation, new operator, object oriented programming, objects, OOP, operators
Posted in Objects | No Comments »
Tuesday, April 25th, 2017
In object-oriented programming, when creating objects from given classes, it is sometimes necessary to call some special methods of those classes, known as a constructors.
Constructor of a class is a pseudo-method, which does not have a return type, has the name of the class and is called using the keyword new.… Read more
Tags: class, constructors, OOP
Posted in Objects | No Comments »
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
Tags: object oriented programming, OOP, properties
Posted in Objects | No Comments »
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
Tags: class, object oriented programming, object variable type, objects, OOP
Posted in Objects | No Comments »