Difference between revisions of "Interview Questions"

From Hawk Wiki
Jump to: navigation, search
(Created page with "==Some Translation== n! Multiplicative ==Encapsulation (object-oriented programming)== restricting access to some of the object's components<br> bundling of data with the methods...")
 
Line 1: Line 1:
 
==Some Translation==
 
==Some Translation==
 
n! Multiplicative
 
n! Multiplicative
==Encapsulation (object-oriented programming)==
+
==Object-oriented programming==
 +
===Encapsulation===
 
restricting access to some of the object's components<br>
 
restricting access to some of the object's components<br>
 
bundling of data with the methods<br>
 
bundling of data with the methods<br>
 
public and private data and methods.<br>
 
public and private data and methods.<br>
 
A benefit of encapsulation is that it can reduce system complexity, and thus increases robustness, reduce risk of conflict between components.<br>
 
A benefit of encapsulation is that it can reduce system complexity, and thus increases robustness, reduce risk of conflict between components.<br>
 +
=== Polymorphism ===
 +
In C++, that type of polymorphism is called overloading.
 +
If a class has inherited a parent class, it can redefine a method and thus each class has a method with the same name but different functionality.
 +
===Inheritance===

Revision as of 22:45, 16 February 2012

Some Translation

n! Multiplicative

Object-oriented programming

Encapsulation

restricting access to some of the object's components
bundling of data with the methods
public and private data and methods.
A benefit of encapsulation is that it can reduce system complexity, and thus increases robustness, reduce risk of conflict between components.

Polymorphism

In C++, that type of polymorphism is called overloading. If a class has inherited a parent class, it can redefine a method and thus each class has a method with the same name but different functionality.

Inheritance