Developing application for different programming approach.

Developing application for different programming approach.

  1. Procedural Programming (Example:- C Language)
    • In this approach a program is a collection of member like variable and functions and all the member we define in the program are called for execution from the main function of the program.
    • The major disadvantage in this approach is lack of security and lack of re-usability.
  2. Object oriented programming language(OOP) (Example :- C++, Java ,C#)
    • The major strength any OOP language is Security and re usability
    • OOP also a program is a collection of member like variables and functions only, But to protect these member we enclose them under a Container or Wrapper know as a Class.

What is Class?

A class is a User defined data type very similar to structure we come across in procedural languages but the main difference between them is, Structure in procedural languages can contain only variable in it whereas a class in opp language can contain both variable and function also

In the above case Student and Employee are two new data types .Where the difference is Student come under the Structure and Employee Come Under the Class.


No comments:

Post a Comment