what is oops concept in c# with examples.

Can any one tell me what is concept of Object Oriented Programming Language with an example.


4 Answers
1-4 of  4
4 Answers
  • Object oriented programming – As the name suggests uses objects in programming. Object oriented programming aims to implement real world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOP is to bind together the data and the functions that operates on them so that no other part of code can access this data except that function.
    Object: Objects are basic run-time entities in an object oriented system, objects are instances of a class these are defined user defined data types.
    Class: Class is a blueprint of data and functions or methods. Class does not take any space.
    Encapsulation and Data abstraction: Wrapping up(combing) of data and functions into a single unit is known as encapsulation. The data is not accessible to the outside world and only those functions which are wrapping in the class can access it. This insulation of the data from direct access by the program is called data hiding or information hiding.
    Inheritance: inheritance is the process by which objects of one class acquire the properties of objects of another class. It supports the concept of hierarchical classification. Inheritance provides re usability. This means that we can add additional features to an existing class without modifying it.
    Polymorphism: polymorphism means ability to take more than one form. An operation may exhibit different behaviors in different instances. The behavior depends upon the types of data used in the operation.
    0

  • OOPS stands for Object Oriented Programming. C++ OOPs Concepts. The major purpose of C++programming is to introduce the concept of object orientation to the C programming language. Object Oriented Programming is a paradigm that provides many concepts such as inheritance, data binding, polymorphism etc.  The example of inheritence is
    Considering HumanBeing a class, which has properties like hands, legs, eyes etc, and functions like walk, talk, eat, see etc. Male and Female are also classes, but most of the properties and functions are included in HumanBeing, hence they can inherit everything from class HumanBeing using the concept of Inheritance.
    0

  • Muy Bian
    0

  • Good 
    0

c plus plus programming
Practice Mock Test
c plus plus programming