Here i am discussing about, "OOP's related inter question's are asked up to fresher level".
What is OOP in C#?
- C# is an Object Oriented Programming language.
- OOP includes classes, objects, overloading, encapsulation, data hiding, and inheritance.
- The fundamental idea behind OOP is to combine into a single unit both data and the methods that operate on that data, such units are called an object.
- All OOP languages provide mechanisms that help you implement the object-oriented model. They are encapsulation, inheritance, polymorphism and reusability.
What is Object Oriented Programming in C#?
- OOP stands for Object-Oriented Programming.
- OOP is a Procedural programming is about writing procedures or methods that perform operations on the data,
while object-oriented programming is about creating objects that contain both data and methods.
Why C# is Object Oriented Programming?
- C# provides full support for Object-Oriented Programming.
- C# includes abstraction, encapsulation, inheritance, and polymorphism.
- Abstraction means hiding the unnecessary details from type consumers.
- Encapsulation means that a group of related properties, methods, and other members are treated as a single unit or object.
Summary
Knowing these sample questions are asked up to fresher level. Simple techniques can make your code easier to understand & simpler to read. Hope this will helpful for you. If there any confusion. Please comment. I will help you.
No comments:
Post a Comment