Search
Contact Us

Contact us

No results for your search.
Sorry, an unexpected error occurred

Object-oriented programming(OOP) is a methodology which is widely used in the software programming world. As a way of describing objects which interact with one another in the software world. An object is a basic representation of a module or an item within a software programming application. Objects are a description of words and actions of a specific function of a piece of software to interact within the application.


A object is written as a class in any high-level programming language. It is the basic blueprint for how your object will be described and facilitated. Here is an example of a Car Class:


You see you, we have some attributes: fuel and maxspeed. Fuel is the amount of fuel within the car and maxspeed allows you to see what the maxspeed, the car can provide.


The methods are action the Car class can take:


refuel(), getFuel(), setSpeed(), getSpeed(), and drive() are actions in which the car can take. When we have a car class instantiated, or created it can it means that we have an object created where we can interact with methods or functions and attributes. For instance, refuel() - used to refuel the car or replenish the vehicle. GetFuel() - tells you how much you have in your fuel tank.


Attributes on the other hand are values which are returned from the system static. For instance, the fuel attribute tells you what type of fuel the vehicle uses. Or, MaxSpeed which tells you the MaxSpeed of the vehicle. These values are static and will give you a value once its called, these values are usually constant but can be change from a configuration or a hard-coded value.


Read more
Created with Notice