October 1, 2013

Array to Object – Start with PHP OOP

PHP: Hypertext Preprocessor

<?php $obj = (object) array(‘web’ => ‘wdwd’, ‘game’ => ‘HOAB HTML5’); echo $obj->web; // prints ‘wdwd’ echo $obj->game; // prints ‘HOAB HTML5’ ?>

March 2, 2012

Practically implementing Object oriented concepts using c++

Practically implementing Object oriented concepts using c++ (Download Code) #include #include #include “mc100200752_CS304_5.h” //mc100200752 //START – DEFINITION OF administrator FUNCTIONS bool administrator::login() { //we will compare this id with our library DBMS records //if user exists then is_login = true; return is_login; }; bool administrator::logoff(int id) { }; int administrator::search() { }; int administrator::Return() { […]

C++ Implementation, simple association, composition, aggregation

C++ Implementation, simple association, composition, aggregation 1. Simple Association: It can be implemented by sending messages from one object to another as this type of association does not involve any type of containment. 2. Composition: Composition is achieved by adding declaration of object of one class in other object. 3. Aggregation: Aggregation is implemented by […]

The concept of composition in OOP, Inheritance, Public & private inheritance, basic constructs of OOP in a program

The concept of composition in OOP, Inheritance, Public & private inheritance, basic constructs of OOP in a program A C++ Program in which you will learn to write a class ‘Pakistani Citizens’ which has five data members “name, age, CNIC No, province, and domicile” and two data functions getter and setter for each data member […]

Digital Library Management System

Explanation of OOP basics with the help of Digital Library Management System Problem: The purpose of the Library Management system is to allow for storing details of a large number of books, magazines, Journals, thesis and allow for add, search, borrow, return facilities separately to administrator/Librarian, staff and students. Different privileges are given to different […]