Abstract classes and Interface in PHP

Abstract classes are those classes which cannot be instantiated and require subclasses to provide implementation for the abstract methods or in other words you cannot create object of abstract classes


Inheritance in Java: Why Inheritance?

One of the major benefits of object-oriented programming is code reuse. Programmers develop lot of code over time.

Exception Handling in Java: Error Types

When a running Java application fails, it creates an exception object encapsulating the error condition and throws it back to the running code.

Nested Classes in Java: Anonymous Classes

A local class without a name is called an anonymous class. If we need only a single instance of a local class, we will create an anonymous class. Typically, a local class has a name and thus a declaration.

Nested Classes in Java: Local Classes

A non-static class defined within a class is called a member class of the enclosing class. A member class is commonly used as a helper class to the enclosing class.

Nested Classes in Java: Why use Nested Classes?

As the name suggests, we can embed a class declaration within another class. This gives us the power to hide our classes within an outer class.

Interfaces in Java: Syntax with Example code

An interface uses syntax similar to that of a class declaration. The format of the interface syntax is shown here:

Interfaces in Java

When we are learning Inheritance, we go through a point that Java does not support multiple inheritance—in other words, a class cannot have two or more super classes. Multiple inheritance has its own advantages and disadvantages.

Difference between IQueryable<T> vs IEnumerable<T>

A lots of time Confusion between IQueryable and IEnumerable interface because, they are look like same and when we start writing a code often,we will choose a wrong approach between them.

Difference between Interface and Abstract Class in .Net

In this blog, I’m explaining about interface and abstract class in .Net


Enter your email address here always to be updated. We promise not to spam!