Total Page Preview:   000000000302

What is four pillar in object oriented programming language

 

 

Four piller OOPS in English:

The four pillars of object-oriented programming (OOP) in C# are:

 
  1. Encapsulation: This refers to the practice of hiding the internal details of an object and providing a public interface for interacting with the object. Encapsulation is achieved through the use of access modifiers and properties.
  2. Inheritance: This allows a class to inherit properties and methods from another class. Inheritance creates a hierarchy of classes, where the parent class (also called the base class) provides a foundation of functionality that child classes (also called derived classes) can build upon.
  3. Polymorphism: This refers to the ability of objects to take on different forms depending on the context in which they are used. Polymorphism is achieved through the use of virtual methods, abstract classes, and interfaces.
  4. Abstraction: This involves the process of reducing complex phenomena to a simplified representation. In C#, abstraction is achieved through the use of abstract classes and interfaces. Abstract classes define a template for a class, while interfaces define a set of methods that a class must implement. Abstraction allows developers to write flexible and maintainable code by hiding implementation details and focusing on the essential features of a system.

 

 

Four piller OOPS in Hindi:

"4 pillars" ka concept OOPs (Object-Oriented Programming) ke foundation concepts ko refer karta hai. Ye 4 basic programming concepts hote hai:

 
1-Abstraction (Sangrahan): Abstraction ka concept ye hai ki aapko sirf essential details aur features ko hi consider karna chahiye, aur unhe isolate karke uske baaki details se alag rakhna chahiye. Abstraction ke through, aap ek complex system ko simplify kar sakte hai, jisse system ko use karne mein aasani ho.
 
2-Inheritance (Vansh): Inheritance ka concept ye hai ki aap ek class ko dusre class se inherit kar sakte hai, aur usse inherit karne wale class ko "child class" ya "derived class" kaha jata hai. Inheritance ke through, aap ek class mein already define kiye gaye properties aur methods ko dusre class mein bhi use kar sakte hai, jisse code reusability aur maintenance mein help milti hai.
 
3-Polymorphism (Anek roop): Polymorphism ka concept ye hai ki aap ek method ko multiple ways mein use kar sakte hai, matlab ek method ka behavior alag-alag ho sakta hai based on the input parameters ya context. Polymorphism ke through, aap ek method ke multiple implementations ko handle kar sakte hai, jisse flexibility aur extensibility ko improve kiya ja sakta hai.
 
4-Encapsulation (Sanghripti): Encapsulation ka concept ye hai ki aap data aur uske corresponding methods ko ek unit ke roop mein group kar sakte hai. Encapsulation ke through, aap data ko protect kar sakte hai, jisse uska unauthorized access nahi ho sakta hai. Iske saath hi, data aur methods ko ek unit ke roop mein group karne se uska reusability aur maintenance mein help milti hai.
 
 
 
 

 

 

Thank You

About Author

Brijesh Kumar

Database Developer

I have more then 6 years Experience in Microsoft Technologies - SQL Server Database, ETL Azure Cloud - Azure SQL Database, CosmosDB, Azure Data Factory, PowerBI, Web Job, Azure Function, Azure Storage, Web Apps, Powershall and Database Migration On-Premise to Azure Cloud.
LinkedIn : https://www.linkedin.com



Comments


                           
                           

                           

                           

Facebook User: