Category: Computer Science Class 10

JAVA and OOPs Concepts

Object Oriented Programming Object-oriented programming (OOP) is a programming paradigm based on the concept of “objects”, which can contain data and code: data in the form of fields (often known as attributes or properties), and code, in the form of procedures (often known as methods) Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism etc in programming. […]

Difference between Procedural and Object Oriented Programming

Procedural Oriented Programming Object Oriented Programming In procedural programming, program is divided into small parts called functions. Example code : #include <stdio.h>/*this function computes the absolute value of a whole number.*/int abs(int x){if (x>=0) return x;else return -x;} /*this program calls the abs() function defined above twice.*/ int main() […]

%d bloggers like this: