CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Classes

Python – Classes and Functions

Python is an Object Oriented language. That means, everything is an Object in Python. Python supports Classes and Functions. In this Article, I am going to explain, how to define & use Functions and Classes in Python. Before I start with Classes, first will discuss with Functions. Functions Functions are the code blocks and defined […]

Ruby Programming – Inheritance in Ruby

Inheritance is one of the great feature in Object Oriented Programming. Ruby supports inheritance. Inheritance allows to inherit the features of the base classes to its derived classes. That means, through derived class objects we can access the features of the base class. Through this Article, we will discuss how we use Inheritance in Ruby. […]

Ruby Programming – Getter and Setter methods

Ruby allows defining class and instance variables. Ruby doesn’t allow us to access the variables of the class directly; instead, we can use methods to access or modify the variables of the class. We have discussed an overview of classes in Ruby through my previous Article “Ruby Programming – An Overview on Classes“. Through this […]

Ruby Programming – An Overview on Classes

As we discussed in our previous Articles, Ruby is a pure object-oriented language. That means, everything is an object of a class in Ruby. Non-object things are NOT exists in Ruby. Unlike C++ where you can write the program without classes or objects; in Ruby we CAN NOT write programs without classes or objects. Hence […]

C# – Classes – An Introduction

‘C#’ classes are code blocks that combine data and operations those work on the data. ‘C#’ classes enables Object Oriented Programming (OOP) concepts of encapsulation and abstraction. Encapsulation means combining data and the operations apply on the data together. Abstraction means hiding the details to outer world. ‘C#’ classes are created using the class keyword. Below […]

C++ – Multiple Inheritance – Virtual inheritance to overcome inheritance ambiguity

Another interesting feature of Object Oriented Programming is its inheritance. Inheritance inherits the behavior or attributes from its parent or base classes to the derived classes. C++ uses virtual inheritance to overcome the inheritance ambiguity in multiple inheritance. Multiple inheritance means, derived classes inherit from multiple base classes. Inheritance ambiguity will occur when a derived class […]

Scroll to top