What are the important concepts in OOPS
Answer Posted / mithun
Encapsulation is the 1st pillar of oops. According to the pronciple to encapsulation, a class or struct can specify hw accessible are their members to the code outside the class or struct.
Inheritence enable to create new classes that reuse, modify the behaviour that is defined in other class. class that is inherited is called based class and class the inherits is derived class.
Polymorphism means many shapped..a base class can define a virtual method, and derived class can verride them, which means they provide their own definition and implementation.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
can you allow a class to be inherited, but prevent the method from being over-ridden?
What is the default value of singleordefault?
Illustrate namespaces in c#?
What is delegates and events?
Is c# strongly typed?
What is expression tree with example?
Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?
What does console readkey do in c#?
Can a class have static constructor?
How garbage collection deals with circular references.
What is the difference between field and variable in c#?
Are c# tuples immutable?
explain the nature of the assembly work?
How do you determine whether a string represents a numeric value?
What is a concrete class in c#?