Class inheritance allows one class to inherit properties of a different class. Dart supports single inheritance i.e. one class can inherit from only one class. extends keyword is used for inheritance. The syntax of extends is :.
ReadIf you know how to create python class and objects, you must have seen init method before. For the first comers, this looks different than other methods and classes. In this blog post, I will explain to you what is init and when/how to use it with different examples. Go through the tutorial and drop a comment below if you have any queries.
ReadJavaScript provides one inbuilt method to remove the fractional part of a number. If you have one floating-point number like 1.24 and you need only the integer part i.e. 1, you can use this method. In this tutorial, I will show you how to do that in JavaScript with a simple function. In the example, I will show you how to do that with different inputs.
ReadFinding the sign of a number is pretty easy in JavaScript. JavaScript provides us one inbuilt method to do that. Just call that method and it will tell you the sign. You don't have to write any separate methods for that. In this tutorial, I will quickly show you how to do that with one example.
ReadJavaScript Math is a built-in object that has different mathematical constants and functions. It has a couple of different functions and constants. In this post, I will show you all the logarithmic functions with examples.
ReadJavaScript program to check if a number is prime or not in four different ways. We will also learn how to find all prime numbers between 1 to 100.
ReadThis post will show you 3 different ways to find if a number is divisible by 3 or not without using the modulo operator. It will use divide and multiply approach, recursive function, and by finding the digit sum of the number to find it.
ReadA class can be abstract or a method can be abstract in Dart. 'abstract' keyword is used to declare an Abstract class. An abstract can't be instantiated or we can't create any objects of abstract class. So, what is its use case ? You can only extend an abstract class.
ReadThis is a quick beginner level C programming question. We will learn how to calculate the area of a rectangle using user input values. Our program will ask the user to enter the height and width of the rectangle. It will calculate the area and print out the result.
ReadA palindrome is a sequence of characters that is the same as backward and forward. For example, rotor, level are palindrome strings.
Read