Posts

Showing posts from March, 2026

OOPs

Image
 OOPs Programming Paradigm: Types or Way of writing a code is known as Programming Paradigm. Procedural OOPs Functional Procedural Paradigm: set of instructions/Functions it is a chain of functions which will call other function and it will start from one function which is known as main. Organuize code into set of functions & each func. may call another. Execution starts with special func. called main. Problem in this way of coding: It is not connected to real world. It means that someone will do something and something will happen with someone. To have multiple parameters in a function we use struct in this paradigm and it don't have any method inside it. Disadvantage: Difficult to make sense in big system In this way of coding we need to go from one function to another and any function can call any function and that is a problem and this chain of function causing issue. It leads to spaghetti code. Solution to Procedural coding is OOPs. OOPs Object oriented programming. Progra...