PHP OOP: Traits

What is Traits?

  • Code is shortened by using Traits.
  • One code is used everywhere just by writing the trait function.

Example :

Output:

Multi traits use example:

Output:

Tagged : / / / / / / / / / / / / / /

PHP OOP: Late Static Binding

Late static Binding:

  • Late static binding helps to override name by using static in echo keyword.
  • It helps lot for writing minimum coding.
  • The message of the base class is printed using the self keyword and the message of the derived class is printed using the static keyword.

Example to printing the message of base class:

Output:

Example of printing the message of derived class:

Output:

Tagged : / / / / / / / / / / / /

PHP OOP : Static Members

What is Static Members ?

  • Static properties and methods can be used without creating an instance of the class.
  • The static keyword is used to declare properties and methods of a class as static.
  • Object not create.
  • Stack keyword use before access modifier.
  • Inside class use self::(use static method).
  • inherit use parent class name ::(properties).

Example :

Example Constructor :-

Tagged : / / / / / / / / / / / / /

PHP OOP : Interfaces

What is Interfaces?

  • Interfaces help us to use multiple classes in a single class inherit.
  • Interfaces are declared with the interface keyword.
  • Derived class is called derived class.
  • object not be created in interface.
  • Property should not be defined in interface(class).
  • All interface methods must be public.
  • All methods in an interface are abstract.
  • To implement an interface, a class must use the implements keyword.

Example :-

Tagged : / / / / / / / / / / / / / /

PHP OOP : Abstract Classes

Abstract Class :

  • when we create abstract class then we can not create object of that abstract class.
  • If we want to use abstract class then we only access with derived class .
  • Just abstract write before the class name.
  • when we create abstract class two condition occurs one is abstract method like :- abstract protected function name ( );
  • abstract means incomplete method we declare but not implement (code).
  • In derived class we have to implement of that abstract method.
Tagged : / / / / / / / / / / / /

PHP OOP : Overriding properties and Methods

Overriding Properties :

  • Same properties on both classes (base and derived class).

Overriding Methods :

  • Same name of method on both classes base or derived class.
Tagged : / / / / / / / / / / / / /

PHP OOP : Access Modifier (public, protected, private)

What is the access modifier?

Restrictions on properties and methods.

Types of access modifier

  1. public
  2. protected
  3. private

Public :

  • Access on base as well as derived class and outside of the class.
  • Everyone can see and access the data.
  • Not secure.
  • Override use.

Protected :

  • Base and Derived class.
  • No one gets access throughout the class.
  • Declare like protected property and method.
  • Not use override function.
  • Without permission no one can access any of these (properties & method).

Private :

  • Access itself.
  • Highly secured.
  • No one can access without permission.
  • Highly costly.
Tagged : / / / / / / / / / / / / / / /

PHP OOP : Inheritance

What is inheritance in php?

  • Inheritance is properties of PHP.
  • Accessing the feature of one class of another class.
  • Three types that is single, multiple and multilevel inheritance.
  • It is the four pillars of oops.
  • It allows a class to reuse the code from another class without duplicating it.
  • Two classes one is base/main another one is derived class.
  • Base class only use its own function but in Derived class it use both function base or derived class.

How to use inheritance in php?

class school {
}
class students extends school {
}
$sch =new school (); // only use class school 
$stu = new students (); // use both class school students (properties and methods)

Example of main/base class use :-

Example of inheritance:

Tagged : / / / / / / / / / / / / / /

Where can I start to learn Azure DevOps?

Today we all discuss about one of the treading point of the time “Azure DevOps”

If you are planning to become an Azure DevOps Engineer or expert, so I must tell you landed to a very good place. Here you can get Microsoft Azure DevOps Course with quality content. In Azure DevOps training, you can get In-Depth Practical Knowledge on Azure Boards, Azure Pipelines, Azure Repos, Azure Test Plans, and Azure Artifacts for the entire end-to-end DevOps Process.

After grab this course and certification, you will become a Master in Azure DevOps Service or Server techniques for Build, Test and Deploy application with Continuous Integration (CI), Continuous Delivery (CD) and Continuous Monitoring (CM). Let’s first take a look on Azure DevOps.

Here, I will try to help you discover important information to get through your preparations for the AZ-400 certification and where can you start to learn Azure DevOps?

What is Azure DevOps?

Azure DevOps is a modern DevOps tool of developing, planning, testing and deploying modern apps with optimized cycle to provide quality delivery of applications. Azure DevOps provides bunch of tool which can help you in track software building progress and also help you to take decision to deliver great software to the end users. Azure DevOps services are not dependent on cloud platform.

Microsoft Azure AZ-400: Azure DevOps

Microsoft Azure has introduced role-based certifications to help professionals to validate their expertise and capabilities for specific roles.

 The AZ-400: Azure DevOps exam tests the capabilities for ensuring that development and operations teams of enterprise work in collaboration and coordination while bringing other departments of the enterprise into the equation, with equal contributions to concerned projects. AZ-400 exam preparation depends on their focus on the responsibilities of an Azure DevOps Engineer Expert.

Candidates should improve their skills in the design and implementation of strategies to ensure collaboration, source control, code, compliance, infrastructure, continuous integration, continuous delivery, feedback, continuous monitoring, security, and continuous testing.

Why should you go for Microsoft Azure DevOps?

You should enroll in this Azure DevOps certification course because:

  • The demand for DevOps is at an all-time high, and more than 80% of all companies would adopt DevOps shortly.
  • The average salary of a professional who has mastered DevOps and Azure is around US$143,000 per year.
  • People who have skills in both Azure with DevOps Engineer have great demand in the marketplace.

Exam Structure of AZ-400 (Microsoft Certified Azure DevOps Engineer)

AZ-400 | Exam Details
Name of the ExamMicrosoft Certified Azure DevOps Engineer Expert
Exam CodeAZ-400
TechnologyMicrosoft Azure
PrerequisitesNone
Exam Duration210 Minutes
Number of Questions40-60
Registration Fee$165 USD(plus applicable taxes)
Exam LanguageEnglish, Japanese

With the right guidance and support mechanism combined with a proper state of mind can overcome these obstacles. With the help of good online training for the AZ-400 exam can help candidates with the best instructor and training.

So if you planning to learn for Master in Azure DevOps and become an AZ-400 certified, then I would like to suggest you DevOpsSchool.com, One of the best institute for Azure DevOps training with best experts and trainer, instructors which are highly qualified professionals who have more than 10 years of working and teaching experience.

If you like Videos for learning then checkout for scmGalaxy YouTube Channel for Quality Course Videos.

I hope you like this particular blog on Azure DevOps informative and helpful.  

Thank you!!

Tagged : / / / / / / /

JavaScript : Introduction

JavaScript :

  • JavaScript is used to create client-side dynamic pages.
  • JavaScript (js) is a light-weight object-oriented programming language.
  • JavaScript is not a compiled language, but it is a translated language.
  • The JavaScript Translator (embedded in the browser) is responsible for translating the JavaScript code for the web browser.
  •  JavaScript, users can build modern web applications to interact directly without reloading the page every time.
  • databases such as CouchDB and MongoDB uses JavaScript as their scripting and query language.

Features of JavaScript :

There are following features of js :-

  • Object-Centered Script Language
  • Light Weight and delicate
  • Interpreted language
  • Case Sensitive format/language
  • Ability to perform In Built Function
  • Statements Looping
  • Client edge Technology
  • Validation of User’s Input
  • Else and If Statement
  • It uses prototypes rather than using classes for inheritance.
  • It is supportable in several operating systems including, Windows, macOS, etc.
  • It provides good control to the users over the web browsers.

Application of JavaScript

JavaScript is used to create interactive websites. It is mainly used for:

  • Client-side validation
  • Manipulating HTML Pages
  • User Notifications
  • Dynamic drop-down menus
  • Displaying date and time
  • Displaying pop-up windows 
  • Alert dialog box
  • Confirm dialog box
  • Prompt dialog box
  • Back-end Data Loading
  • Presentations
  • Server Applications
  • Displaying clocks etc.

JavaScript Example :

Output :-

Welcome to JavaScript

Hello JavaScript by JavaScript

Tagged : / / / / / / / / / / / / / /