Programming languages are of two types, namely;
(a). Modular or function-based Programming Language
(b). Object-oriented Programming Language.
(a). Modular Programming Language: A programming language is called Modular if it supports methods. A method or a function is a block or section of code that is logically associated with each other. This section or block of code has got its specific or particular name. Whenever a programmer wants to execute the specific block of code s/he used the name of that particular section or block of code.
(b). Object-oriented Programming Language: A programming language is called Object oriented if it has the support to create or develop classes in it. Class is an abstraction of a real-world object and is used to define the characteristics, qualities and actions performed by the object for which the class is written. For example, a teacher is an object and if we want to write the class for a teacher then it'll include the characteristics, specifications and actions perform by a teacher.
C is a modular programming language and doesn't have object-oriented features in it.
C++ supports both modular and object-oriented features.
Java is a completely object-oriented language as it doesn't allow modular programming. In Java every object has to be defined in terms of a class.
(a). Modular or function-based Programming Language
(b). Object-oriented Programming Language.
(a). Modular Programming Language: A programming language is called Modular if it supports methods. A method or a function is a block or section of code that is logically associated with each other. This section or block of code has got its specific or particular name. Whenever a programmer wants to execute the specific block of code s/he used the name of that particular section or block of code.
(b). Object-oriented Programming Language: A programming language is called Object oriented if it has the support to create or develop classes in it. Class is an abstraction of a real-world object and is used to define the characteristics, qualities and actions performed by the object for which the class is written. For example, a teacher is an object and if we want to write the class for a teacher then it'll include the characteristics, specifications and actions perform by a teacher.
C is a modular programming language and doesn't have object-oriented features in it.
C++ supports both modular and object-oriented features.
Java is a completely object-oriented language as it doesn't allow modular programming. In Java every object has to be defined in terms of a class.