Cracking Interview Questions on OOP’s

Hi Guys,

The question I ask myself, before sharing an info-educational content like this, is what qualifies me to create such content on this subject?

I am not going to pretend that I started writing codes & programming when I was at junior school, I can’t even pretend that I was in high school or I paid my way through the university from the proceeds of developing.

For last 17 years I am in love with Developing & Programming, and making my living training people on how to approach technology. With all modesty I can say that I am good trainer.

In this particular mail series, I intend clarify or talk in detail about an important concept called Object Oriented concepts.

Now what is Object?

An Object is commonly defined as an “instance of the class”…

I don’t particularly like this definition as I feel; it does not clarify the subject enough. To understand and to know all about Object Oriented Concepts, to develop an understanding that can help you crack job interview, to use the concepts on actual project: I invite you to follow this video.

I won’t shy from saying that this video will have great utility for someone intending to practice and create a career in .NET Or Java.

OOPS Concepts Part 1 https://www.youtube.com/watch?v=XjtB0GIyQgk

OOPS Concepts Part 2 https://www.youtube.com/watch?v=mxKYpZ8SfzM

It’s just fare to ask for your feedback… isn’t it!

Wishing you a very best of luck

OOPs Concepts

Hi,

In this post we will be discussing about the concepts of OOPs…

These concepts are very important to be known when any fresher is going to attending an interview. So lets go through the OOPs Concepts…

1. What is a Class?

A class is a template / skeleton / blueprint for creating an object.

 

2. What is an Object?

  • An Object is an entity that has properties for validations, methods for functionality and events for depicting the change of state.
  • Every object has the data and behavior with which they are differed. Data associated at any given instance of time is the state of an object.

 

3. What is a Component?

A ready to use third party object can be called as a Component. It can be replaced without any changes in the application. A component is generally used by a programmer as an object.

 

An application can be called as a collection of related objects exchanging messages with each other.

 

Loosely coupled objects are better than tightly coupled objects i.e. the lesser the information given to other objects the better it is as the objects are loosely coupled the dependencies are less and stronger security.

 

Every object oriented language should have three features

  • Encapsulation
  • Inheritance
  • Polymorphism

 

Encapsulation: Binding of data and behavior i.e. functionality of an object within a secured and controlled environment is encapsulation. Best example for encapsulation is a class.

 

Inheritance: The Process of acquiring the existing functionality of the parent and with new added features and functionality by a child object is called inheritance.

The advantages of inheritance are Generalization, Extensibility and Reusability.

For example: A calculator is a generalized form of mathematical operations where as a Scientific calculator is an Extended and Specific form.

 

Polymorphism: An object in different forms and in each form it exhibits the same functionality but implemented in different ways.

For example: A man who knows more than one language can speak any language he knows. Here the functionality is speech and person is the object.

A faculty can take a form of Java Faculty or MS.NET faculty and in both the forms he teaches, but what he teaches differs. Here functionality is teach and faculty is the object.

Always have your basics strong that is when you can achieve anything you want.

That is the reason we are sharing this important basics with you, which are very essential to be known.

Please do comment to our posts.

Thank you, and stay connected……