Skip to main content

Posts

Showing posts from February, 2019

Classes and Objects in JavaScript.

The ways classes are created, how to manage class structure,inheritance hierarchy in java script will be covered in this blog. OOP concepts can be applied in java Script but it is a bit different than Java. Classes and Objects. How to create a class in JavaScript. Functions in JavaScript act as objects. We use functions to create classes. These functions are known as constructor functions. Difference between a normal function and a constructor function(conventions created by programmers) is that normal functions are written using camel notation and the first letter of the constructor functions(classes) starts with an uppercase letter and defined as a noun. Creating objects and classes. When creating an object; Objects are clone in JavaScript because class is an object unlike in Java. Creating JASON like objects using curly brackets.  Creation of JSON object. Console output. JSON objects not only have properties and methods it also may include embedde...

Introduction for Application Frameworks.

This blog includes the principles that must be followed when designing a software and the way of approaching and implementing the solution,before going in-depth of the designing languages. "An application is a software library that provides a fundamental structure to support the development of applications for a specific environment not only for graphical user interface development but also for areas like web based applications." S.O.L.I.D There are 5 object oriented Principles that should be followed when designing a software. This is know as S.O.L.I.D I - Single responsibilities. Designing a class that has only one responsibility O - Open-Close. The application must be closed for modification and open for extension. L - Liskov Substitution. Sub-classes derived from the parent class must be able to substitute the parent class. I - Interface segregation. Clients should not be forced to implement methods they do not use.These unknown metho...