What are coupling and cohesion?

What are coupling and cohesion? Coupling The degree of dependency between the component is called coupling. If the dependency is more then it is considered as tightly coupling and dependency are less then it is considered as loosely coupling. Example Class A{ static int i=B.j } Class B{ Static int j=C.k } Class C{ static int k=D.m1(); } Class D{ ...

Read More »

Difference between overriding and overloading?

Difference between overriding and overloading? Overloading Two methods are said to be overloaded if and only if both methods having the same name but difference arguments types. In C-language method overloading concept is not available hence we can’t declare multiple methods with same name but different arguments types. If there is a chance in arguments types compulsory we should go ...

Read More »

Difference between IS-A relationship and Has-A relationship.

Difference between IS-A relationship and Has-A relationship. IS-A Relationship It is known as an inheritance The main advantage of IS-A relationship is code reusability. By using extends keyword we can implement IS-A relationship. Whatever method parent has by-default available to the child and hence on the child reference we can call both parent and child method. Whatever method child has by-default ...

Read More »

What is Encapsulation?

What is Encapsulation? The process of binding data and corresponding method into a single unit is nothing but encapsulation.  If any component follows Data Hiding and Abstraction such type of component is said to be encapsulated component. Encapsulation = Data hiding + Abstraction. Encapsulation is a principle of wrapping data (variables) and codes together as a single unit. It is ...

Read More »

What is Abstraction?

What is Abstraction? Abstraction is one of the most important principles in object-oriented software engineering and is closely related to several other important concepts, including encapsulation, inheritance, and polymorphism. Hiding internal implementation and just highlight the set of services what we are offering, is the concept of abstraction. Through Bank ATM GUI screen bank people are highlighting the set of services ...

Read More »

What is Data hiding?

What is Data hiding? Data hiding is a software development technique specifically used in object-oriented programming (OOP) to hide internal object details (data members). Data hiding ensures exclusive data access to class members and protects object integrity by preventing unintended or intended changes. Data hiding also reduces system complexity for increased robustness by limiting interdependencies between software components. Data hiding is ...

Read More »

Responsive WordPress Theme Freetheme wordpress magazine responsive freetheme wordpress news responsive freeWORDPRESS PLUGIN PREMIUM FREEDownload theme free