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


Please Help Members By Posting Answers For Below Questions

Is object an int c#?

519


What is different about switch statements in c#?

488


What is hash c#?

495


What is the difference between var and dynamic types in c# 4.0?

509


What are namespaces, and how they are used?

561






Can abstract classes be final?

495


Explain about Threading Types.

593


What is the use of tryparse in c#?

462


Is there a way to force garbage collection?

494


Explain the difference between proc. Sent by val and by sub?

474


If a method's return type is void, can you use a return keyword in the method?

536


How main method is called in c#?

511


What is string empty?

499


What are partial classes and use of partial classes?

523


What is task parallel library?

505