17/08/2022
Introduction to Digital Logic Gates πΉ
What's on this topic ?
π Brief Introduction
π 7 Logic Gates + Symbol
π Basic + Derived Logic Gates
Links
π Circuit Construction using Breadboard
π Virtual Stimulator for circuit visualization mainly for those whose main focus is on computer science
Tags
This post is designed using figmaπ
02/01/2022
π» Last Post on Constructor (9/9)
Topic: Constructor Chaining π
As the name suggests, Chaining the Constructor means to call one Constructor from another.
It can either be changed implicitly:
When extends one class with other ( Inheritance ) then the default constructor( for eg. Animal( ) ) from the parent class if present, then it is called implicitly.
It can explicitly be called using keywords like:
this: Chaining within the class
super: Chaining with parent class
Definition
Visualization
Code Snippet
Output
Is provided in the post. If you like our post then please like and share with your friends β€οΈ
Do follow us
πππ
Wish you a very happy new year
π₯³π₯³π₯³
Class Tags{
}
26/12/2021
π§Copy Constructor
-> Direct Initialization
-> Object Passing
πΌπΌπΌ
= = = = = = = = = = =
// Direct Initialization
class Copy
{
int marks;
Copy(int marks){ this.marks = marks; }
void updateMarks(int marks){ this.marks = marks; }
void getMarks(){
System.out.println("Marks = "+marks);
}
public static void main(String[] args){
Copy topper = new Copy(90);
Copy backbencher = topper;
System.out.println("\nDirect: Copy Constructor");
topper.getMarks();
backbencher.getMarks();
System.out.println("\nTopper Marks Updated");
topper.updateMarks(92);
topper.getMarks();
backbencher.getMarks();
System.out.println("\nBackbencher Marks Updated");
backbencher.updateMarks(80);
topper.getMarks();
backbencher.getMarks();
}
}
= = = = = = = = = = =
π¦π¦π¦
= = = = = = = = = = =
// Object Passing
class Copy
{
int marks;
Copy(int marks){ this.marks = marks; }
Copy(Copy val){ this.marks = val.marks; }
void updateMarks(int marks){ this.marks = marks; }
void getMarks(){
System.out.println("Marks = "+marks);
}
public static void main(String[] args){
Copy topper = new Copy(90);
Copy backbencher = new Copy(topper);
System.out.println("\nDirect: Copy Constructor");
topper.getMarks();
backbencher.getMarks();
System.out.println("\nTopper Marks Updated");
topper.updateMarks(92);
topper.getMarks();
backbencher.getMarks();
System.out.println("\nBackbencher Marks Updated");
backbencher.updateMarks(80);
topper.getMarks();
backbencher.getMarks();
}
}
= = = = = = = = = = =
Please like, share & follow if you like our content. Please leave a comment for any query or suggestions.
class Tags{
Please like, share & follow if you like our content. Please leave a comment for any queries or suggestions.
}
13/11/2021
πUnderstand what actually is
π±Programming Paradigmπ±...
Types of Paradigms
π΄declarative
./functional
./logical
./database_query
π΅imperative
./procedural
./object-oriented
Nowadays most of the programming languages are Multi-Paradigm in nature
π€―π€―π€―
cpp π C++
js π JavaScript
py π Python
rb π Ruby
and so on
If you like our content please
π±π±LIKE, SHARE & FOLLOWπ±π±
___________________________
11/11/2021
Wrapping up the OOP Concept with 10+ oop pillar [Overview, imp links]...
>> Post
class
object
encapsulation
abstraction
data_hiding
polymorphism
./overloading
./overriding
inheritance
>> Resources in GitHub.md
cohesion
coupling
association
aggregation
composition
Hope you'll like our efforts and support us by liking, following, sharing our content.
πππ
System.exit(πββοΈπββοΈπ);
10/08/2021
Objects in Java
Clear your doubts....
Content
1) What is Object
2) How to create Object
3) Example with Class and Object
4) Object as an Instance of Class
5) Visualization of Object
6) Understand with Example
If you like our content then please
Like, Share, Save, Comment and Follow
Your interaction will help us to bring this content regularly
31/07/2021
Introduction to Class
OOP's concept in Java
Content
1) What is Class
2) Why to use Class
3) Important Features of Class
4) Basic Syntax of Class
5) Visualization of Class with e.g
6) Class as an Object Factory
7) Explanation with example
if( ππ₯°π )
{
Like || Share || Comment || Share
&&
Follow
}
IgnoreTags( ){
}
26/07/2021
Let's find the Saddle Point
in 8 easy Steps.....
Content:
1) What's Saddle Point
2) I/O
3) Programming
4) Stepwise Analysis
5) Complexity Analysis of Algorithms
Java Program
=================
class SaddlePoint{
public static void findPoint(int[][] array){
//Step2: Initialize point to 'false' (not found)
boolean found = false;
//Step3: Loop through the array row-wise
for(int i=0; i colMax){
colMax = array[j][colIndex];
}
}
//Step8: If the value is unchanged print and set found to 'true'
if(colMax == rowMin){
System.out.println("Saddle Point is : " + colMax);
found = true;
break;
}
}
//Step9: If not found then print and terminate
if(!found){ System.out.println("No Saddle Point"); }
}
public static void main(String []args){
//Step1: Construct the array & Pass the array to the function
int[][] array = { {6, 3, 1}, {9, 7, 8}, {2, 4, 5} };
findPoint(array);
}
}
=================
If you like our work then please....
(Like || Share || Save || Comment)
&&
Follow
Thank you π
Have a nice day!
11/07/2021
Mistakes to avoid while calculating the address in array...
Important concept of Row-Major and Column-Major...
Some problems related to this topic based on ISC Computer Science exam pattern.
Please π₯Ίπ
do
{
((like || share || comment) && follow);
}
(while β€οΈ);
//Mentions
world
06/07/2021
Row and Column Major
And many more basic DDA concept.
Concepts
1>> Data Representation
2>> Declaration
3>> Instantiation
4>> Initialisation
5>> Row-Major Formula
6>> Column-Major Formula
7>> Loops in DDA
Please π₯Ίπ
Like | Share | Follow | Comment
To encourage us to keep bringing this interactive and interesting programming content.
π¨βπ»π¨βπ»π¨βπ»π¨βπ»π¨βπ»π¨βπ»π¨βπ»
03/06/2021
Single Dimensional Array in Java
Plzz. Like, Share and Comment
To share your support.
Basic Understanding of
1) Declaration
2) Instantiation
3) Initialisation
4) Array Length
5) Printing Element in Array
---> i) Using For-Loop
---> ii) Using For-Each @ India
17/05/2021
Introduction to Arrays in Java
Array plays a major role in Data Structures. It is also important to learn various methods and to understand the use of array data structure for any programming language. If you wanted to master Data Structure and Algorithms then it is the basic building block that one should understand before diving deep into the topics like LinkedList, Binary Tree, List, ArrayList, Stack, Queue and many, many more.
It is one of the most convieneint data structure and also has it's shortcomming which we will going to discuss in the upcomming post. How to tackle such ambiguity in array and what are the other possible data structure that could be implemented using array.
I'm really exicted to begin with this topic, though it is quite dense topic to go through if you are a beginner. But i will try my best to simplify the topic as clear as possible.
If you like our efforts then you can support us by sharing this post as much as possible and do discuss in the comment section about your views.
Thank You !
If you had been till here thanks for reading
Have a nice day.