Wednesday, November 26, 2008

OMS

I am the owner of a toothpaste firm "Quadrant". Our firm produces varieties of toothpaste like:
Herbal
Salt
Gum protection

The stocks of the above 3 products is maintained in Alipore where we have the central depot.

We want a system where :

1)My salesperson can log on via the web on the central depot system and inform the central depot about the requirement at a particular shop.

2)the system will then check the inventory for the particular product and if there is sufficient level of stock, it will accept the demand as an order and deduct that order from the existing inventory level to show a true picture of the existing stock with us.

3)Incase, there is insufficient inventory then the system will inform the salesperson and the demand for that product will be rejected i.e. no order should be placed.

Sunday, November 16, 2008

OOPS!!

My brother Ayush who has just got over with his board exams was asking me how to utilise his three month off before joining college. This is the conversation we had.
Me: I think you should do some computer course to raise your elementary knowledge about computers to a level which will help you gain an edge over your peers.
Ayush: But what is the justification of doing a course related to computer in order to do an effective utilisation of time? I can do so many other things.
Me: Sure you can but now that I am exposed to the world of IT after I joined Praxis I will suggest you to enrich your computer knowledge whenever you get an opportunity to do so.
Ayush: So you think IT is the only important thing?
Me: I did not mean that but since your aim is to enter the field of management in future I would tell you the advantages of the same. When you enter the corporate world you will find that the business processes are automated at a high degree. This is not just to gain efficiency but to stand where you are in this competitive world where all your competitors are upgrading the computer processes continuously.
Ayush: True, nowadays I find so many new technologies being mentioned in the newspapers and tech shows on TV.
Me: Most of them are not “new technologies” as you term it rather upgraded versions of the older processes.
Ayush: Okay.
Me: So it is necessary for you to know the basics of those processes so that you can keep ‘upgrading your knowledge’ about these technologies also.
Ayush: Yes now it makes sense for me to think of the various computer courses to choose from. Can you suggest me where to start from?
Me: Sure, you should start building your knowledge on computer programming.
Ayush: I think then C, C++ would be the starting point.
Me: I totally agree with you because it will give you an idea about Object Oriented Programming.
Ayush: Now, what is Object Oriented Programming?
Me: Oh! OOP as it is called is programming paradigm that uses "objects" and their interactions to design applications and computer programs. Some of the relevant terms related to the same are : encapsulation, polymorphism, and inheritance. And two most important terms are “CLASS” and “OBJECT”.
Ayush: What are all these?
Me: Let me first explain you what is an Object. An Object is a group of related functions and a data structure that serves those functions.
The functions are known as the object's methods, and the fields of its data structure are its instance variables. A program can have more than one object of the same kind. The program that models water usage, for example, might have several Faucets and Water Pipes and perhaps a handful of Appliances and Users. Objects of the same kind are said to belong to the same Class. All members of a class are able to perform the same methods and have matching sets of instance variables. They also share a common definition; each kind of object is defined just once.
Inheritance is specific to object-oriented programming, where a new class is created from an existing class. Inheritance (often referred to as subclasses) comes from the fact that the subclass (the newly created class) contains the attributes and methods of the parent class. The main advantage of inheritance is the ability to define new attributes and new methods for the subclass which are then applied to the inherited attributes and methods.
This can be used to create a highly specialised hierarchical class structure. The biggest advantage is that there is no need to start from scratch when wanting to specialise an existing class.
Class hierarchy
The parent-child relationship between classes can be represented in a hierarchical view often called class tree view. The class tree view starts with a general class called superclass (sometimes referred to as base class, parent class, ancestor class, mother class or father class), Derived classes (child class or subclass) become more specialised further down the tree.

Multiple inheritance
Some object oriented languages, such as C++ allow multiple inheritance, meaning that one class can inherit attributes from two super classes. This method can be used to group attributes and methods from several classes into one single class.
The word Polymorphism comes from Greek and means having several different forms. This is one of the essential concepts of object-oriented programming. Where inheritance is related to classes and (their hierarchy), polymorphism is related to object methods.


The ability of different objects to respond, each in its own way, to identical messages is called polymorphism.
Ayush: What is encapsulation?
Me: Storing data and functions in a single unit (class) is encapsulation. Data cannot be accessed to the outside world and only those functions which are stored in the class can access it.
Ayush: Okay it seems to be interesting. I will find out about the training centres and will enrol right away for the programming course. Thanks a lot sis!
Me: My pleasure.

Monday, November 3, 2008