Searches related to Classes and Objects in java
classes and objects in java pdf
classes and objects in java ppt
classes and objects in c++
classes in java
classes and objects in java with realtime examples
methods in java
encapsulation in java
define class in java
Amazon Auto Links: No products found.
you have told that using getter and setter u can secure your data ,but u don’t have told how it is doing that. Please focus on logics also
hi all while writing code after giving dot after mark in the pop up box id name are not coming .can anyone help me to resolve this issue. I am new to java.Thanks
sir,if we havent use getters and setters in the student class..they cant be used in my class?
thx man! it really helps me to understand class and object in java. keep it up the good work!
Sir, U have shown the use of getter and setter methods. My query is can we get input from user for id, name and age using scanner object in one class and call the methods in second class which has main method. Thanks in advance.
sir please provide tutorial for struts and hibernate
sir please provide tutorial for struts and hibernate
For those of you who can’t grasp the concept of objects and classes. I was in the same situation as you. I watched a ton of videos and I just didn’t quite get it. So after hours of researching about objects and classes I finally decided that I would actually write the code that these Youtubers were writing in their tutorials. I did some examples after these kind of tutorials and I basically practiced what they were doing. I also googled some exercises for this topic and after a couple of hours everything started making sense. The point is don’t just watch these tutorial videos. You should try writing the code by yourself and do exercises on the specific topic that way you can really start thinking and overtime you will start understanding what they were talking about. Trust me.
Thank You so much, so easy to understand, now i know what are classes and objects LOL 😀
In Netbeans 8 i am getting an error with my strings “Colour is erroneous” for example. Can someone help
Good Java learning tutorial.
After all these years, I finally understood why do we need to use the keyword this. Thank you very much!
Please Sir,
Suggest me correct code for this program .I faced execution error in this code
package Calculation;
import java.util.Scanner;
public class Calculator {
static char choice;
static int a1, b2 , ad, sb, ml, dv,pr;
public static void main(String[] args) {
System.out.println(“Enter first number”);
Scanner num1 = new Scanner(System.in);
a1 = num1.nextInt();
System.out.println(“Enter sevond number”);
Scanner num2 = new Scanner(System.in);
b2 = num2.nextInt();
System.out.println(“Enter + for addition”);
System.out.println(“Enter – for subtraction”);
System.out.println(“Enter * for multiply”);
System.out.println(“Enter ÷ for division”);
System.out.println(“Enter # for clear screen”);
System.out.println(“Enter % for percentage”);
System.out.println(“Enter calculation choice”);
Scanner scan = new Scanner(System.in);
choice = scan.next().charAt(0);
switch(choice){
case ‘+’: addition ad1 = new addition();
ad = ad1.Add(a1 , b2 );
System.out.println(“addition is” +ad);
break;
case ‘-‘:subtraction sb2 = new subtraction();
sb = sb2.Sub(a1 , b2);
System.out.println(“Subtraction is”+sb);
break;
case ‘*’: multiplication mul3 = new multiplication();
ml = mul3.Mul(a1, b2);
System.out.println(“Multiplition is” +ml);
break;
case ‘÷’: division dv4 = new division();
dv = dv4.Div(a1,b2);
System.out.println(“Division is” +dv);
break;
case ‘%’: percentage pr5 = new percentage();
pr= pr5.Per(a1, b2);
System.out.println(“percentage is” +pr);
break;
}
}
}
why do we use the word “NEW” and what is use of that
You’re stunning!
how does getter and setters protect from data corruption please explain? a programmer can change id, age,name in both the cases u have shown
how i can create class inside main class using notepad …….
pls tell me is there any method used in java to clear the screen as used clrscr() in c or c++.??
Very easy to understand tqq u so much sir
I am facing a problem……. When i am trying to import any variable from a class it show me a error like id is a variable so it is showing “id cannot be resolved or is not a field.”……… Hep me Thanks
GREAT VIDEOS! THANKS!
Why not make the field variables private?
Bro it is you can give not you can gave.
I think you need a grammar tutorial
I understood the 1st part but the 2nd part of getid( )…
Please explain it clearly
you have like 3 smoke alarms peeping. good video but those annoying beeping kills it. unprofessional!
I imprested….hello! dear, I’m a developer, and I lead a team who develop an android app for movement and digital India,
Easy!!! Thanks.
WTF? Stop this bullshit! Mark is not an object, it’s only a reference variable that link to an object. Who are you? Maybe Mr. Helloworld… or Mr.Newbie
use “CTRL+2 , R” for changing all “selected” variables at once
2 fps lol
Sir I am getting error by – student canot be resolved to a type, please help me.
You could have used private variables after using getters and setters
simply and superb….
Can someone explain which part is missed with protecting your data. Which ones should have been private?
Watch at 1.5X speed for beginners, 2X speed for programmers coming from another language
My ears are burning off 🙁
Hmm mm mm. N mmnyyy
what is instance of class?
dont we have to have Private instances on other class then its worth to setters and getters there.