ASDV-Java/Semester 2/Assignments/lab8_2_CalebFontenot/Printed HTMLs/TestInterfaces.html
2023-04-14 01:01:58 -05:00

63 lines
3.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>TestInterfaces.java</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
<!--
body {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace; font-weight: bold}
pre {color: #a9b7c6; background-color: #2b2b2b; font-family: monospace; font-weight: bold}
table {color: #888888; background-color: #313335; font-family: monospace; font-weight: bold}
.literal {color: #cc7832}
.string {color: #6a8759}
.comment {color: #808080}
.whitespace {color: #505050}
-->
</style>
</head>
<body>
<table width="100%"><tr><td align="center">/home/caleb/ASDV-Java/Semester 2/Assignments/lab8_2_CalebFontenot/src/main/java/com/calebfontenot/lab8_2_calebfontenot/interfacesGrouped/TestInterfaces.java</td></tr></table>
<pre>
<span class="comment">/*</span>
<span class="comment"> * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license</span>
<span class="comment"> * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template</span>
<span class="comment"> */</span>
<span class="literal">package</span> com.calebfontenot.lab8_2_calebfontenot.interfacesGrouped;
<span class="comment">/**</span>
<span class="comment"> *</span>
<span class="comment"> * </span><span class="comment">@author</span> <span class="comment">caleb</span>
<span class="comment">*/</span>
<span class="literal">public</span> <span class="literal">class</span> TestInterfaces <span class="literal">implements</span> InterfaceGrouped1 {
@Override
<span class="literal">public</span> <span class="literal">void</span> IG1() {
System.out.println(<span class="string">&quot;</span><span class="string">TestInterfaces:IG1()</span><span class="string">&quot;</span>);
}
@Override
<span class="literal">public</span> <span class="literal">void</span> I1() {
System.out.println(<span class="string">&quot;</span><span class="string">TestInterfaces:I1()</span><span class="string">&quot;</span>);
}
@Override
<span class="literal">public</span> <span class="literal">void</span> I2() {
System.out.println(<span class="string">&quot;</span><span class="string">testInterfaces:I2()</span><span class="string">&quot;</span>);
}
@Override
<span class="literal">public</span> <span class="literal">void</span> defaultMethodOfInterface() {
System.out.println(<span class="string">&quot;</span><span class="string">overriden implementation of defaultMethodOfInterface</span><span class="string">&quot;</span>);
}
<span class="literal">public</span> <span class="literal">static</span> <span class="literal">void</span> main(String[] args)
{
System.out.println(TestInterfaces.x);
InterfaceGrouped1.staticMethodOfInterface();
TestInterfaces ti = <span class="literal">new</span> TestInterfaces();
ti.I1();
ti.I2();
ti.IG1();
ti.defaultMethodOfInterface();
}
}
</pre></body>
</html>