Home »Programming »Other » Object-Oriented Design with Java



Object-Oriented Design with Java

Lecture 9: OO Design in Java - Tutorial 3 part 2

Embed
Download:   MP4, FLV and 3GP 903 views

SEE: Guide to Download YouTube Video Lecture

Lecture Details :

This video covers the object concept, constuctors, methods, and variables. Here is the source code used in this video:

class Employee {
String name;
Double salary;

Employee () {
name = "Joe Smith";
salary = 15.75;
}

String getName(){
return name;
}

String getSalary() {
return salary.toString();
}

public static void main(String[] args){

Employee myEmployee = new Employee();
String retrievedName = myEmployee.getName();
System.out.println(retrievedName);
String retrievedSalary = myEmployee.getSalary();
System.out.println(retrievedSalary);
}
}

Course Description :

Course Description not available

Other Resources :

Citation |


Other Programming Courses

» check out the complete list of Programming courses          

 

Programming Lecture Notes

 

Comments

Post your Comments