Procedural Programming Object Oriented Programming Examples: C, Algol, FORTRAN, Pascal, Basic, etc Examples: Java, C++, C#, Python, PHP, JavaScript Overloading not possible Overloaind possible No access specifier Private, public, protected access specifier No data hiding Provides data hiding No inheritance Provides inheritance Based on unreal world Based on real world Uses the concept of procedure […]
Category: OOP
Object Oriented Programming
Object-oriented programming is programming based on the concept of objects. Take an example, In Code:Block, program looks like this In above program, class Student contains the variables id and name. To access the variables id and name from the class Student, there is the need of an object for the class Student. Syntax to create […]