• Register

Recent posts tagged class

6 0 4 min.
 ContentUnderstand class and objectWhat is objectWhat is classTypes of classDifferent between class & object Understand class and object:  What is Object ?An object is a logical unit or object within programming. It contains your p...
posted 2 days ago Tania 632 points
10 1 4 min.
Let’s assume for the moment that you’re writing a Perl module or application. You’d like to maintain some level of software quality (or kwalitee), so you’re writing a suite of test scripts. Whether you’re writing th...
posted 6 days ago mjg 214 points
22 4 2 min.
In programming language, there are three type of models, interface, abstract class and concrete class. If you have nothing about implementation just only have the declarations, then it will considered as interface whereas if you have all implementati...
posted Jun 12 mhfaisal 262 points
30 3 2 min.
To know the difference between base class and derived class in c++, first of all we should know what is a Class?A class is a user-defined data type that we can use in our program, and it works as an object constructor, or a "blueprint&...
posted Jun 5 Jeevani 278 points
30 1 2 min.
At first we should learn, what is BufferedReader in Java?In Java, BufferedReader is a class which is used to read the text from a character-based input stream. It can be used to read data line by line by readLine() method which reads a...
posted May 31 Jeevani 278 points
12 1 7 min.
Difference between inner class and nested classJava Nested and Inner ClassIn this tutorial, you will learn about the nested class in Java and its types with the help of examples. In Java, you can define a class within another class. Such class i...
posted May 29 Sanjana Sagar 440 points
8 0 9 min.
Difference between class and id attribute in html ID’s and classes are “hooks”!We need ways to describe content in an HTML/XHTML document. The basic elements like <h1>, <p>, and <ul> will o...
posted May 28 Sanjana Sagar 440 points
6 0 2 min.
What is the difference between id and class in cssID’s are uniqueEach element can have only one IDEach page can have only one element with that IDWhen I was first learning this stuff, I heard over and over that you should only use ID’s on...
posted May 22 Sanjana Sagar 440 points
3 0 1 min.
How to call an array from another class in javaBy Creating an Object of other class and use that object to invoke the array from your class.For Example -You have two classes A and B.Now, You have something like this in A class -  class A{ p...
posted May 22 Sanjana Sagar 440 points
9 0 2 min.
There are various ways to generate random numbers in java but in this article, we will look at three commonly used methods that are used to generate a random number in java. These methods can be used to generate numbers of any data type such as integ...
posted May 22 Huzaifa-Glitch 875 points
3 0 1 min.
Difference between class and method in javaThe main difference between Class and Method is that class is a blueprint or a template to create objects while method is a function that describes the behavior of an object.A programming para...
posted May 20 Sanjana Sagar 440 points
0 0 1 min.
Differences between Class and Function TemplatesThe name of a template class is a compound name consisting of the template name and the full template argument list enclosed in angle braces. Any references to a template class must use this complete na...
posted May 19 Sanjana Sagar 440 points
0 0 5 min.
 Structure:A structure is a collection of simple variables. The variables in a structure can have different data types such as int, float, string, etc. The data items in a structure are called the members of the structure. St...
posted Mar 19 Hafsa_Rao 28,438 points
0 0 8 min.
1. Can abstract class have constructors in Java?Yes, an abstract class can declare and define a constructor in Java. Since you can not create an instance of an abstract class, a constructor can only be called during constructor chaining, i.e. wh...
posted Dec 29, 2020 Lalit Kumar 1,240 points
0 0 4 min.
In this article you will learn how to code for the sidebar menu hover show/hide. you also can use jQuery for solving this problem, but here, we will move with CSS only.HTML code  <html> <head> </head> <body>&...
posted Nov 7, 2020 kunal verma 12,140 points
0 0 2 min.
In this article, we will talk about Java compiler error "class, interface, or enum expected". This error is mainly faced by developers who are new to the world of java.Let's walk through some examples of this error and discuss how to fi...
posted Oct 13, 2020 Hasnain_khan 100 points
0 0 1 min.
In this article, we will learn about How to import all Classes in java. All classes in a package can be imported using import statements together with the character *. For example - All classes in the java.util package can be imported using...
posted Oct 12, 2020 Hasnain_khan 100 points
0 0 3 min.
In this article, we will discuss how  To use methods from another Java class . As long as your class has access to that other class, you can simply create an instance of that class and call the method.Do take note though that access le...
posted Oct 9, 2020 Hasnain_khan 100 points
0 0 1 min.
 This article discusses the erro “this declaration has no storage class or type specifier”. In this article, I’ll discuss the cause and the solution of the error by an example.Example #include <iostream> #include <fst...
posted Oct 4, 2020 Lalit Kumar 1,240 points
0 0 1 min.
Structure is a collection of variables of different data types under a single name. The elements defined in the structure are data members of a different type and length. Structure is more like classes since they store members of different types. The...
posted Sep 21, 2020 Lalit Kumar 1,240 points